/* ==========================================================================
   SVD & Associates — Company Secretaries, Pune
   --------------------------------------------------------------------------
   Corporate / professional theme.
   Primary teal #2a7d6e on white, dark teal #1e5f53 accents, with the bright
   logo teal #0aa8a1 reserved for small highlights (icons, hovers, the mark).

   Signature device: the "double slash" from the logo mark, re-drawn in CSS
   (.slash-mark) and used as the eyebrow prefix on every section heading.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens (CSS custom properties)
   -------------------------------------------------------------------------- */
:root {
  /* Brand colours — LAGOON TEAL (freshest, closest to the logo hue) */
  --svd-teal: #0a8f88; /* primary — bright lagoon teal (AA-large: 3.96:1 with white) */
  --svd-teal-dark: #0a6b66; /* accents, dark bands, footer, button hover (AA: 6.35:1 with white) */
  --svd-teal-deep: #07443f; /* overlays, hero shade */
  --svd-teal-bright: #0aa8a1; /* logo teal — icons & micro-accents only */
  --svd-teal-tint: #e3f6f4; /* soft teal wash for chips / hovers */

  /* Neutrals (tuned slightly cooler to sit under the fresher teal) */
  --svd-ink: #12332e; /* headings & body text */
  --svd-muted: #5a6f69; /* secondary text */
  --svd-mist: #f2fbf9; /* alternate section background */
  --svd-line: #d5ebe6; /* hairlines & borders */
  --svd-white: #ffffff;

  /* Typography */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;

  /* Rhythm & shape */
  --section-pad: clamp(4rem, 8vw, 6rem); /* balanced vertical rhythm */
  --radius: 0.75rem;
  --shadow-soft: 0 0.5rem 1.5rem rgba(7, 68, 63, 0.08);
  --shadow-lift: 0 1rem 2.25rem rgba(7, 68, 63, 0.14);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Fixed navbar height (80px logo + navbar padding — used to offset in-page anchors) */
  --nav-height: 96px;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 1rem);
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--svd-ink);
  background: var(--svd-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--svd-ink);
}

a {
  color: var(--svd-teal);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--svd-teal-dark);
}
img {
  max-width: 100%;
  height: auto;
}

::selection {
  background: var(--svd-teal);
  color: var(--svd-white);
}

/* Visible keyboard focus (WCAG 2.4.7) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--svd-teal-bright);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Skip link — hidden until focused */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 3000;
  background: var(--svd-teal-dark);
  color: var(--svd-white);
  padding: 0.6rem 1.2rem;
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 600;
}
.skip-link:focus {
  top: 0;
  color: var(--svd-white);
}

/* --------------------------------------------------------------------------
   3. Signature: the logo's double-slash mark, drawn in CSS
   -------------------------------------------------------------------------- */
.slash-mark {
  display: inline-flex;
  gap: 4px;
  transform: skewX(-24deg); /* same lean as the logo mark */
  margin-right: 0.65rem;
  vertical-align: -1px;
}
.slash-mark i {
  /* the two bars: thick + thin */
  display: block;
  height: 0.9em;
  background: var(--svd-teal-bright);
}
.slash-mark i:first-child {
  width: 7px;
}
.slash-mark i:last-child {
  width: 3px;
}
.slash-mark--light i {
  background: var(--svd-white);
}

/* Eyebrow label above section headings */
.eyebrow {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--svd-teal);
  margin-bottom: 0.9rem;
}
.eyebrow--light {
  color: rgba(255, 255, 255, 0.85);
}

/* Section heading with the logo's "line through" echo */
.section-title {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  margin-bottom: 1rem;
}
.section-lead {
  color: var(--svd-muted);
  max-width: 46rem;
}
.section-head--center {
  text-align: center;
}
.section-head--center .section-lead {
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   4. Layout helpers
   -------------------------------------------------------------------------- */
.section {
  padding-block: var(--section-pad);
}
.section--mist {
  background: var(--svd-mist);
}
.section--dark {
  background: var(--svd-teal-dark);
  color: var(--svd-white);
}
.section--dark h2,
.section--dark h3 {
  color: var(--svd-white);
}

/* Scroll-triggered fade-in (activated by main.js via IntersectionObserver) */
[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
  transition-delay: var(--stagger, 0s);
}
[data-animate].is-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   5. Preloader
   -------------------------------------------------------------------------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  background: var(--svd-white);
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease;
}
.preloader.is-done {
  opacity: 0;
  visibility: hidden;
}
.preloader__logo {
  animation: preloader-pulse 1.6s ease-in-out infinite;
}
.preloader__bar {
  width: 180px;
  height: 3px;
  border-radius: 3px;
  background: var(--svd-line);
  overflow: hidden;
}
.preloader__bar span {
  display: block;
  width: 40%;
  height: 100%;
  background: var(--svd-teal-bright);
  animation: preloader-sweep 1.1s ease-in-out infinite;
}
@keyframes preloader-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.55;
  }
}
@keyframes preloader-sweep {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(280%);
  }
}

/* --------------------------------------------------------------------------
   6. Navigation
   -------------------------------------------------------------------------- */
.site-nav {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  min-height: var(--nav-height);
  transition:
    box-shadow var(--transition),
    border-color var(--transition);
}
.site-nav.is-scrolled {
  border-color: var(--svd-line);
  box-shadow: 0 0.35rem 1.25rem rgba(20, 63, 55, 0.08);
}
.site-nav__logo {
  height: 80px;
  width: auto;
}

.site-nav .nav-link {
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  color: var(--svd-ink);
  padding: 0.5rem 0.9rem !important;
  position: relative;
}
/* Underline slides in on hover / stays on the active page.
   NOTE: drawn with ::before — ::after is reserved for Bootstrap's dropdown
   caret, which we hide below and replace with a Font Awesome chevron so the
   two devices never collide. */
.site-nav .nav-link::before {
  content: "";
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.15rem;
  height: 2px;
  background: var(--svd-teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.site-nav .nav-link:hover,
.site-nav .nav-link.active {
  color: var(--svd-teal);
}
.site-nav .nav-link:hover::before,
.site-nav .nav-link.active::before {
  transform: scaleX(1);
}

/* Dropdown chevron: kill the Bootstrap border-caret, use a real icon instead */
.site-nav .dropdown-toggle::after {
  display: none;
}
.site-nav__chev {
  font-size: 0.62em;
  margin-left: 0.3rem;
  vertical-align: 1px;
  transition: transform var(--transition);
}
.site-nav .dropdown-toggle[aria-expanded="true"] .site-nav__chev {
  transform: rotate(180deg);
}

.site-nav__dropdown {
  border: 1px solid var(--svd-line);
  border-top: 3px solid var(--svd-teal);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lift);
  padding: 0.5rem 0;
  margin-top: 0.35rem;
}
.site-nav__dropdown .dropdown-item {
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.55rem 1.25rem;
  color: var(--svd-ink);
}
.site-nav__dropdown .dropdown-item:hover,
.site-nav__dropdown .dropdown-item:focus {
  background: var(--svd-teal-tint);
  color: var(--svd-teal-dark);
}
.dropdown-item--all {
  font-weight: 700;
  color: var(--svd-teal);
}

.site-nav__cta {
  padding-inline: 1.25rem;
}

/* Custom three-bar hamburger that morphs into an X */
.navbar-toggler {
  border: 0;
  width: 44px;
  height: 44px;
  position: relative;
}
.navbar-toggler:focus {
  box-shadow: none;
}
.navbar-toggler-bar {
  position: absolute;
  left: 10px;
  width: 24px;
  height: 2px;
  background: var(--svd-teal-dark);
  border-radius: 2px;
  transition:
    transform var(--transition),
    opacity var(--transition),
    top var(--transition);
}
.navbar-toggler-bar:nth-child(1) {
  top: 14px;
}
.navbar-toggler-bar:nth-child(2) {
  top: 21px;
}
.navbar-toggler-bar:nth-child(3) {
  top: 28px;
}
.navbar-toggler[aria-expanded="true"] .navbar-toggler-bar:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}
.navbar-toggler[aria-expanded="true"] .navbar-toggler-bar:nth-child(2) {
  opacity: 0;
}
.navbar-toggler[aria-expanded="true"] .navbar-toggler-bar:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

/* --------------------------------------------------------------------------
   7. Buttons
   -------------------------------------------------------------------------- */
.btn {
  font-weight: 600;
  border-radius: 0.5rem;
  transition: all var(--transition);
}

.btn-teal {
  background: var(--svd-teal);
  border: 2px solid var(--svd-teal);
  color: var(--svd-white);
  padding: 0.7rem 1.7rem;
}
.btn-teal:hover,
.btn-teal:focus {
  background: var(--svd-teal-dark);
  border-color: var(--svd-teal-dark);
  color: var(--svd-white);
  transform: translateY(-2px);
  box-shadow: 0 0.6rem 1.2rem rgba(30, 95, 83, 0.28);
}
.btn-teal.btn-sm {
  padding: 0.45rem 1.1rem;
}

.btn-outline-light-teal {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.75);
  color: var(--svd-white);
  padding: 0.7rem 1.7rem;
}
.btn-outline-light-teal:hover {
  background: var(--svd-white);
  color: var(--svd-teal-dark);
  transform: translateY(-2px);
}

.btn-outline-teal {
  background: transparent;
  border: 2px solid var(--svd-teal);
  color: var(--svd-teal);
  padding: 0.7rem 1.7rem;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}
.btn-outline-teal:hover {
  background: var(--svd-teal);
  color: var(--svd-white);
  transform: translateY(-2px);
}
.btn i {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}
/* --------------------------------------------------------------------------
   8. Hero (full-screen, centered, with the big brand slashes)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--svd-white);
  background-image:
    linear-gradient(135deg, rgba(7, 68, 63, 0.72), rgba(10, 143, 136, 0.56)),
    url("../img/hero3.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* parallax on desktop */
  padding: calc(var(--nav-height) + 3rem) 0 4rem;
  overflow: hidden;
}
/* Oversized ghost of the logo mark drifting behind the headline */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  top: -12%;
  height: 130%;
  background: rgba(255, 255, 255, 0.05);
  transform: skewX(-24deg);
  pointer-events: none;
}
.hero::before {
  width: 130px;
  right: 16%;
}
.hero::after {
  width: 46px;
  right: 11%;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 54rem;
}
.hero__title {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 600;
  color: var(--svd-white);
  margin-bottom: 1.25rem;
}
.hero__title em {
  font-style: italic;
  color: #9fe0da;
}
.hero__lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: rgba(255, 255, 255, 0.88);
  max-width: 40rem;
  margin: 0 auto 2.25rem;
}
.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Scroll cue — a mouse outline whose wheel-dot drops repeatedly, flanked by
   two brand slashes; the dot glows in the bright logo teal */
.hero__scroll {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}
.hero__scroll:hover .hero__mouse {
  border-color: var(--svd-white);
}
.hero__mouse {
  width: 27px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 15px;
  position: relative;
  transition: border-color var(--transition);
}
.hero__mouse span {
  /* the animated wheel dot */
  position: absolute;
  top: 7px;
  left: 55%;
  width: 4px;
  height: 9px;
  margin-left: -2px;
  border-radius: 3px;
  background: #63d6cd; /* bright logo-teal tint */
  box-shadow: 0 0 8px rgba(99, 214, 205, 0.8);
  animation: mouse-wheel 1.9s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
.hero__scroll-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition);
}
.hero__scroll:hover .hero__scroll-label {
  color: var(--svd-white);
}
.hero__scroll-label .slash-mark {
  margin: 0;
}
.hero__scroll-label .slash-mark i {
  height: 0.75em;
  background: rgba(255, 255, 255, 0.55);
}
@keyframes mouse-wheel {
  0% {
    opacity: 0;
    transform: translateY(-4px);
  }
  25% {
    opacity: 1;
  }
  75% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(15px);
  }
}

/* Inner-page header band (About / Services / Career / Contact) */
.page-hero {
  position: relative;
  padding: calc(var(--nav-height) + 4.5rem) 0 3.75rem;
  color: var(--svd-white);

  background-image:
    linear-gradient(135deg, rgba(7, 68, 63, 0.72), rgba(10, 143, 136, 0.56)),
    var(--page-hero-img);

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  overflow: hidden;
}
.page-hero::before,
.page-hero::after {
  content: "";
  position: absolute;
  top: -20%;
  height: 150%;
  background: rgba(255, 255, 255, 0.06);
  transform: skewX(-24deg);
  pointer-events: none;
}
.page-hero::before {
  width: 90px;
  right: 12%;
}
.page-hero::after {
  width: 32px;
  right: 8%;
}
.page-hero__title {
  color: var(--svd-white);
  font-size: clamp(2.1rem, 4.5vw, 3.1rem);
  margin-bottom: 0.5rem;
}
.page-hero__lead {
  color: rgba(255, 255, 255, 0.85);
  max-width: 44rem;
  margin-bottom: 0;
}
.page-hero .breadcrumb {
  --bs-breadcrumb-divider-color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1rem;
}
.page-hero .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.75);
}
.page-hero .breadcrumb-item.active {
  color: var(--svd-white);
}

/* --------------------------------------------------------------------------
   9. Cards (services, values, team, careers)
   -------------------------------------------------------------------------- */
.card-svd {
  height: 100%;
  background: var(--svd-white);
  border: 1px solid var(--svd-line);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  position: relative;
  overflow: hidden;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}
/* Diagonal brand accent sweeps in on hover */
.card-svd::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    135deg,
    rgba(7, 68, 63, 0.72),
    rgba(10, 143, 136, 0.56)
  );
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.card-svd:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
  border-color: transparent;
}
.card-svd:hover::before {
  transform: scaleX(1);
}

.card-svd__icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 0.65rem;
  background: var(--svd-teal-tint);
  color: var(--svd-teal);
  font-size: 1.45rem;
  margin-bottom: 1.25rem;
  transition:
    background var(--transition),
    color var(--transition),
    transform var(--transition);
}
.card-svd:hover .card-svd__icon {
  background: var(--svd-teal);
  color: var(--svd-white);
  transform: scale(1.06) rotate(-4deg);
}

.card-svd__title {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}
.card-svd__text {
  color: var(--svd-muted);
  font-size: 0.9875rem;
  margin-bottom: 1rem;
}
.card-svd__link {
  font-weight: 700;
  font-size: 0.9375rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.card-svd__link i {
  transition: transform var(--transition);
}
.card-svd__link:hover i {
  transform: translateX(4px);
}

/* Team cards */
.team-card {
  text-align: center;
}
.team-card__photo-wrap {
  width: 148px;
  height: 148px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(
    135deg,
    rgba(7, 68, 63, 0.72),
    rgba(10, 143, 136, 0.56)
  );
}
.team-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--svd-white);
}
.team-card__name {
  font-size: 1.25rem;
  margin-bottom: 0.15rem;
}
.team-card__qual {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--svd-teal);
  margin-bottom: 0.75rem;
}
.team-card__bio {
  color: var(--svd-muted);
  font-size: 0.9575rem;
  margin-bottom: 0;
}

/* Founder feature panel */
.founder-panel {
  background: var(--svd-white);
  border: 1px solid var(--svd-line);
  border-left: 5px solid var(--svd-teal);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.75rem, 4vw, 3rem);
}
.founder-panel__photo {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

/* --------------------------------------------------------------------------
   10. Stats counter band (dark, parallax)
   -------------------------------------------------------------------------- */
.stats {
  background-image:
    linear-gradient(135deg, rgba(7, 68, 63, 0.72), rgba(10, 143, 136, 0.56)),
    url("../img/scales-justice.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* parallax on desktop */
  color: var(--svd-white);
}
.stat {
  text-align: center;
  padding: 1rem 0.5rem;
}
.stat__value {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
  color: var(--svd-white);
}
.stat__value .stat__affix {
  color: #9fe0da;
}
.stat__label {
  margin-top: 0.6rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

/* --------------------------------------------------------------------------
   11. Clients
   -------------------------------------------------------------------------- */
.client-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  min-height: 92px;
  padding: 1rem 1.25rem;
  background: var(--svd-white);
  border: 1px solid var(--svd-line);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--svd-teal-dark);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}
.client-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: var(--svd-teal-bright);
}

/* Client logo cards (clients.php) — logos render greyscale, colour on hover */
.logo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  height: 100%;
  padding: 1.75rem 1.25rem;
  background: var(--svd-white);
  border: 1px solid var(--svd-line);
  border-radius: var(--radius);
  text-align: center;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}
.logo-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
  border-color: var(--svd-teal-bright);
}
.logo-card__img {
  max-height: 64px;
  width: auto;
  max-width: 100%;
  filter: grayscale(1) opacity(0.75);
  transition: filter var(--transition);
}
.logo-card:hover .logo-card__img {
  filter: none;
}
.logo-card figcaption {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--svd-muted);
}

/* --------------------------------------------------------------------------
   12. Gallery + lightbox
   -------------------------------------------------------------------------- */
.gallery-item {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}
.gallery-item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.gallery-item::after {
  content: "\f00e"; /* magnifier icon on hover */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  color: var(--svd-white);
  background: rgba(30, 95, 83, 0.55);
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-item:hover::after,
.gallery-item:focus-visible::after {
  opacity: 1;
}
.gallery-item:hover img {
  transform: scale(1.07);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 30, 27, 0.94);
  padding: 2rem;
}
.lightbox[hidden] {
  display: none;
}
.lightbox__figure {
  max-width: min(1000px, 90vw);
  text-align: center;
}
.lightbox__img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: var(--radius);
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.5);
}
.lightbox__caption {
  color: rgba(255, 255, 255, 0.85);
  margin-top: 1rem;
  font-size: 0.9375rem;
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--svd-white);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background var(--transition);
}
.lightbox__close:hover,
.lightbox__nav:hover {
  background: var(--svd-teal);
}
.lightbox__close {
  top: 1.5rem;
  right: 1.5rem;
}
.lightbox__nav--prev {
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox__nav--next {
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
}

/* --------------------------------------------------------------------------
   13. Services page detail blocks + FAQ
   -------------------------------------------------------------------------- */
/* Anchored sections sit below BOTH the fixed navbar and the sticky chip bar */
.service-block {
  scroll-margin-top: calc(var(--nav-height) + 4.75rem);
}
.service-block__img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  width: 100%;
  object-fit: cover;
}

/* Sticky chip bar — sticks just below the fixed navbar for the whole page.
   (position:sticky keeps it pinned while its parent <main> is in view.) */
.chipbar {
  position: sticky;
  top: var(--nav-height);
  z-index: 1020; /* below the fixed navbar (1030) */
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--svd-line);
  padding: 0.8rem 0;
}
.chipbar .service-chips {
  flex-wrap: nowrap; /* single row, horizontally scrollable */
  overflow-x: auto;
  scrollbar-width: none; /* hide scrollbar (Firefox) */
  -webkit-overflow-scrolling: touch;
}
.chipbar .service-chips::-webkit-scrollbar {
  display: none;
} /* hide scrollbar (WebKit) */
.chipbar .service-chips a {
  white-space: nowrap;
  flex: 0 0 auto;
}
.service-chips a.is-active {
  background: var(--svd-teal);
  color: var(--svd-white);
}
.check-list {
  list-style: none;
  padding-left: 0;
}
.check-list li {
  padding-left: 1.9rem;
  position: relative;
  margin-bottom: 0.55rem;
  color: var(--svd-muted);
}
.check-list li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--svd-teal-bright);
  font-size: 0.85rem;
}

/* Anchor chips at the top of the services page */
.service-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}
.service-chips a {
  padding: 0.45rem 1.1rem;
  border-radius: 2rem;
  background: var(--svd-teal-tint);
  color: var(--svd-teal-dark);
  font-size: 0.875rem;
  font-weight: 700;
  transition:
    background var(--transition),
    color var(--transition);
}
.service-chips a:hover {
  background: var(--svd-teal);
  color: var(--svd-white);
}

/* FAQ accordion (Bootstrap, re-skinned) */
.faq .accordion-item {
  border: 1px solid var(--svd-line);
  border-radius: var(--radius) !important;
  margin-bottom: 0.9rem;
  overflow: hidden;
}
.faq .accordion-button {
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--svd-ink);
  padding: 1.1rem 1.4rem;
  background: var(--svd-white);
}
.faq .accordion-button:not(.collapsed) {
  color: var(--svd-teal-dark);
  background: var(--svd-teal-tint);
  box-shadow: inset 0 -1px 0 var(--svd-line);
}
.faq .accordion-button:focus {
  box-shadow: 0 0 0 3px rgba(10, 168, 161, 0.35);
}
.faq .accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%232a7d6e'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
.faq .accordion-body {
  color: var(--svd-muted);
  padding: 1.15rem 1.4rem 1.4rem;
}

/* --------------------------------------------------------------------------
   14. Recognition / credential strip (About)
   -------------------------------------------------------------------------- */
.credential {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  background: var(--svd-white);
  border: 1px solid var(--svd-line);
  border-radius: var(--radius);
  padding: 1.5rem;
  height: 100%;
  transition:
    box-shadow var(--transition),
    transform var(--transition);
}
.credential:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-3px);
}
.credential i {
  color: var(--svd-teal-bright);
  font-size: 1.5rem;
  margin-top: 0.2rem;
}
.credential h3 {
  font-size: 1.08rem;
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.credential p {
  color: var(--svd-muted);
  font-size: 0.9375rem;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   15. CTA band (parallax)
   -------------------------------------------------------------------------- */
.cta-band {
  background-image:
    linear-gradient(135deg, rgba(7, 68, 63, 0.72), rgba(10, 143, 136, 0.56)),
    url("../img/abstract-composition-wallpaper-background-concept.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--svd-white);
  text-align: center;
}
.cta-band h2 {
  color: var(--svd-white);
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  margin-bottom: 1rem;
}
.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 40rem;
  margin: 0 auto 2rem;
}

/* --------------------------------------------------------------------------
   16. Forms (contact + internship)
   -------------------------------------------------------------------------- */
.form-panel {
  background: var(--svd-white);
  border: 1px solid var(--svd-line);
  border-top: 5px solid var(--svd-teal);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.75rem, 4vw, 2.75rem);
}
.form-label {
  font-weight: 600;
  font-size: 0.9375rem;
}
.form-label .req {
  color: #c0392b;
}
.form-control,
.form-select {
  border-color: var(--svd-line);
  padding: 0.7rem 0.9rem;
  font-size: 0.9875rem;
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}
.form-control:focus,
.form-select:focus {
  border-color: var(--svd-teal);
  box-shadow: 0 0 0 0.2rem rgba(42, 125, 110, 0.18);
}
.form-text {
  color: var(--svd-muted);
}

/* Status message shown after AJAX submission */
.form-status {
  display: none;
}
.form-status.is-visible {
  display: block;
}
.form-check-input:checked {
  background-color: var(--svd-teal);
  border-color: var(--svd-teal);
}
/* Contact info cards */
.info-card {
  display: flex;
  gap: 1.1rem;
  background: var(--svd-white);
  border: 1px solid var(--svd-line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  height: 100%;
  transition:
    box-shadow var(--transition),
    transform var(--transition);
}
.info-card:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-3px);
}
.info-card__icon {
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  background: var(--svd-teal);
  color: var(--svd-white);
  border-radius: 0.6rem;
  font-size: 1.15rem;
}
.info-card h3 {
  font-size: 1.05rem;
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.info-card p,
.info-card a {
  color: var(--svd-muted);
  font-size: 0.9575rem;
  margin-bottom: 0;
}
.info-card a:hover {
  color: var(--svd-teal);
}

/* Google Maps embed */
.map-frame {
  border: 0;
  width: 100%;
  height: 420px;
  display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  filter: saturate(0.9);
}

/* Legal / ICSI disclaimer note */
.disclaimer {
  font-size: 0.8425rem;
  color: var(--svd-muted);
  border-top: 1px dashed var(--svd-line);
  padding-top: 1.25rem;
}
label {
  font-size: small;
}
button {
  font-size: 1rem !important;
}

/* --------------------------------------------------------------------------
   17. Footer (single line) + floating buttons
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--svd-teal-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 1.4rem 0;
}
.site-footer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.site-footer__copy {
  font-size: 0.9075rem;
}
.site-footer__social {
  display: flex;
  gap: 0.6rem;
}
.site-footer__social a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--svd-white);
  font-size: 0.9375rem;
  transition:
    background var(--transition),
    transform var(--transition);
}
.site-footer__social a:hover {
  background: var(--svd-teal-bright);
  transform: translateY(-3px);
  color: var(--svd-white);
}

/* Back-to-top button */
.back-to-top {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 1500;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: var(--svd-teal-deep);
  color: var(--svd-white);
  box-shadow: var(--shadow-lift);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity var(--transition),
    transform var(--transition),
    visibility var(--transition),
    background var(--transition);
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.back-to-top:hover {
  background: var(--svd-teal-dark);
}

/* Sticky call-to-action pill (left side, appears after scrolling) */
.sticky-cta {
  position: fixed;
  left: 1.4rem;
  bottom: 1.4rem;
  z-index: 1500;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--svd-teal-deep);
  color: var(--svd-white);
  padding: 0.75rem 1.35rem;
  border-radius: 3rem;
  font-weight: 700;
  font-size: 0.9375rem;
  box-shadow: var(--shadow-lift);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity var(--transition),
    transform var(--transition),
    visibility var(--transition),
    background var(--transition);
}
.sticky-cta.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.sticky-cta:hover {
  background: var(--svd-teal-bright);
  color: var(--svd-white);
}

/* --------------------------------------------------------------------------
   18. Responsive tweaks
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .site-nav .navbar-collapse {
    background: var(--svd-white);
    border-top: 1px solid var(--svd-line);
    margin-top: 0.75rem;
    padding: 0.75rem 0 1rem;
  }
  .site-nav .nav-link::before {
    display: none;
  } /* no underline in the mobile menu */
  .site-nav__cta {
    display: inline-block;
    margin-top: 0.5rem;
  }
  .hero::before {
    right: 6%;
  }
  .hero::after {
    right: 0;
  }
}

@media (max-width: 575.98px) {
  /* The 80px logo is kept for desktop/tablet; on phones it is scaled to 62px
       so the fixed header doesn't eat the viewport. Remove these two rules if
       you want the full 80px logo on every screen size. */
  :root {
    --nav-height: 80px;
  }
  .site-nav__logo {
    height: 62px;
  }

  .sticky-cta span {
    display: none;
  } /* icon-only pill on phones */
  .sticky-cta {
    padding: 0.85rem 1rem;
    border-radius: 50%;
  }
  .site-footer__row {
    justify-content: center;
    text-align: center;
  }
  .gallery-item img {
    height: 200px;
  }
}

/* Fixed-background parallax is unreliable on touch devices — fall back gracefully */
@media (hover: none), (max-width: 991.98px) {
  .hero,
  .stats,
  .cta-band {
    background-attachment: scroll;
  }
}

/* --------------------------------------------------------------------------
   19. Reduced motion (WCAG 2.3.3) — honour the user's OS preference
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-animate] {
    opacity: 1;
    transform: none;
  }
}

/* ===========================================================================
   Footer: machine-readable contact line and legal / resource links
   Added for AI-agent discoverability — the contact details and legal pages
   must be real links on every page, including the homepage.
   ========================================================================= */
.site-footer__contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.75rem;
  padding-bottom: 1.1rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.875rem;
  line-height: 1.5;
}

.site-footer__contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.82);
}

.site-footer__contact-item i {
  font-size: 0.8rem;
  opacity: 0.7;
}

.site-footer__contact a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  transition: border-color 0.2s ease;
}

.site-footer__contact a:hover,
.site-footer__contact a:focus-visible {
  border-bottom-color: #fff;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 1.1rem;
  font-size: 0.85rem;
}

.site-footer__links a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer__links a:hover,
.site-footer__links a:focus-visible {
  color: #fff;
  text-decoration: underline;
}

@media (max-width: 575.98px) {
  .site-footer__contact {
    flex-direction: column;
    gap: 0.6rem;
    text-align: center;
  }
}
