/* ==========================================================================
   Policlinic House — Design 02
   Green-led palette drawn from the shield logo.
   --------------------------------------------------------------------------
   1.  Tokens            8.  Dark bands / chairman
   2.  Base & type       9.  Testimonials & FAQ
   3.  Buttons           10. CTA band & page hero
   4.  Header            11. Forms
   5.  Hero slider       12. Footer & floats
   6.  Sections          13. Motion
   7.  Cards             14. Responsive
   ========================================================================== */

/* 1. Tokens ============================================================== */
:root {
  /* Colour — sampled from the Policlinic House shield logo */
  --forest-deep:  #0C2C1D;  /* darkest: slider overlay, top bar */
  --forest:       #16402C;  /* headings, dark bands, footer */
  --forest-2:     #1F5138;
  --green:        #2F6442;  /* primary action — dark, text-safe on white */
  --green-700:    #24502F;
  --green-mid:    #3B7B52;
  --green-bright: #4E9762;  /* logo green as drawn */
  --green-soft:   #86C79A;  /* accents on dark panels */
  --green-tint:   #E8F2EA;
  --navy:         #134673;  /* logo navy — secondary accent */
  --navy-tint:    #E8EFF6;
  --sand:         #F1F6F1;  /* alternate section background */
  --paper:        #FFFFFF;
  --line:         #DCE7DE;
  --line-soft:    #EBF1EB;
  --ink:          #16402C;
  --ink-2:        #34503D;
  --muted:        #5A7263;
  --muted-light:  #B0CAB9;
  --gold:         #C48A2B;

  /* Type */
  --font-display: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-ui: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Shape — plain rectangles, small radius */
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 18px;
  --r-img: 12px;
  --shadow-1: 0 2px 4px rgba(12, 44, 29, .04), 0 12px 28px -18px rgba(12, 44, 29, .3);
  --shadow-2: 0 4px 10px rgba(12, 44, 29, .06), 0 30px 60px -32px rgba(12, 44, 29, .5);

  --section-y: clamp(3.5rem, 7vw, 6.5rem);
  --container: 1340px;
}

/* 2. Base & typography =================================================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }

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

.container {
  max-width: var(--container);
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
@media (min-width: 1400px) { .container { padding-left: 2rem; padding-right: 2rem; } }

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.14;
  letter-spacing: -0.02em;
}
h1, .h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
h2, .h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3, .h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
h4, .h4 { font-size: 1.08rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--green); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--green-700); }

img { max-width: 100%; height: auto; }
::selection { background: var(--green-tint); color: var(--forest); }

:focus-visible {
  outline: 3px solid rgba(78, 151, 98, .65);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 2000;
  background: var(--forest); color: #fff; padding: .75rem 1.25rem;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

.lead-text { font-size: 1.12rem; color: var(--muted); line-height: 1.75; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-ui);
  font-size: .78rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--green);
  margin-bottom: .9rem;
}
.eyebrow::before {
  content: ""; width: 22px; height: 3px; border-radius: 2px;
  background: var(--green-bright); flex: none;
}
.eyebrow--center { justify-content: center; }
.eyebrow--light { color: var(--green-soft); }
.eyebrow--light::before { background: var(--green-soft); }

.ui-label {
  font-family: var(--font-ui);
  font-size: .78rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
}

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

/* 3. Buttons ============================================================= */
.btn {
  --bs-btn-focus-box-shadow: none;
  font-family: var(--font-ui);
  font-weight: 600; font-size: .97rem;
  border-radius: var(--r-sm);
  padding: .82rem 1.55rem;
  border: 2px solid transparent;
  transition: background-color .22s ease, color .22s ease, border-color .22s ease, transform .22s ease;
}
.btn-clinic { background: var(--green); color: #fff; }
.btn-clinic:hover, .btn-clinic:focus { background: var(--forest); color: #fff; transform: translateY(-2px); }

.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover, .btn-navy:focus { background: #0F3859; color: #fff; transform: translateY(-2px); }

.btn-line { background: transparent; color: var(--forest); border-color: var(--line); }
.btn-line:hover, .btn-line:focus { border-color: var(--green); color: var(--green); transform: translateY(-2px); }

.btn-on-dark { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-on-dark:hover, .btn-on-dark:focus { background: #fff; color: var(--forest); border-color: #fff; }

.btn-white { background: #fff; color: var(--forest); }
.btn-white:hover, .btn-white:focus { background: var(--green-tint); color: var(--forest); transform: translateY(-2px); }

.btn-sm-pill { padding: .58rem 1.1rem; font-size: .9rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--font-ui); font-weight: 600; font-size: .92rem;
  color: var(--green);
}
.link-arrow i { transition: transform .22s ease; }
.link-arrow:hover i { transform: translateX(4px); }

/* Icon tile — solid dark green */
.ico-tile {
  width: 54px; height: 54px;
  border-radius: var(--r-sm);
  display: grid; place-items: center;
  font-size: 1.45rem;
  background: var(--green);
  color: #fff;
  flex: none;
  transition: background-color .25s ease;
}
.ico-tile--navy { background: var(--navy); }
.ico-tile--sm { width: 46px; height: 46px; font-size: 1.18rem; }

.chip {
  display: inline-block;
  font-family: var(--font-ui); font-size: .78rem; font-weight: 600;
  padding: .3rem .8rem; border-radius: 999px;
  background: var(--green-tint); color: var(--green-700);
}

/* 4. Header ============================================================== */
.topbar {
  background: var(--forest-deep);
  color: #B7D2C1;
  font-family: var(--font-ui);
  font-size: .85rem;
  padding: .55rem 0;
}
.topbar a { color: #B7D2C1; }
.topbar a:hover { color: #fff; }
.topbar-item { display: inline-flex; align-items: center; gap: .45rem; }
.topbar-sep { color: rgba(255, 255, 255, .22); padding: 0 .8rem; }
.topbar-social a {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  font-size: .8rem;
}
.topbar-social a:hover { background: var(--green-bright); color: #fff; }

.site-nav {
  position: sticky; top: 0; z-index: 1030;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--line-soft);
  padding: .55rem 0;
  transition: box-shadow .25s ease, padding .25s ease;
}
.site-nav.is-stuck { box-shadow: 0 10px 34px -26px rgba(12, 44, 29, .85); padding: .3rem 0; }

.brand { display: inline-flex; align-items: center; }
.brand img { width: auto; height: 52px; transition: height .25s ease; }
.site-nav.is-stuck .brand img { height: 44px; }
.site-footer .brand img { height: 56px; }

.site-nav .navbar-nav { gap: .1rem; }
.site-nav .nav-link {
  position: relative;
  font-family: var(--font-ui);
  font-size: .97rem; font-weight: 500;
  color: var(--ink-2);
  padding: .6rem .9rem;
  background: transparent;
  transition: color .2s ease;
}
/* Active + hover state: green underline, no fill */
.site-nav .nav-link::after {
  content: "";
  position: absolute;
  left: .9rem; right: .9rem; bottom: .28rem;
  height: 2px; border-radius: 2px;
  background: var(--green-bright);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .25s ease, background-color .2s ease;
}
.site-nav .nav-link:hover { color: var(--forest); background: transparent; }
.site-nav .nav-link:hover::after { transform: scaleX(1); }
.site-nav .nav-link.active {
  color: var(--forest);
  font-weight: 600;
  background: transparent;
}
.site-nav .nav-link.active::after { transform: scaleX(1); height: 3px; background: var(--green); }
.site-nav .dropdown-toggle::after { margin-left: .35rem; vertical-align: .12em; }

.dropdown-menu {
  border: 0; border-radius: var(--r);
  box-shadow: var(--shadow-2);
  padding: .45rem; min-width: 15rem;
}
.dropdown-item {
  font-family: var(--font-ui);
  border-radius: var(--r-sm);
  font-size: .94rem; font-weight: 500;
  color: var(--ink-2);
  padding: .58rem .8rem;
}
.dropdown-item:hover, .dropdown-item:focus { background: var(--green-tint); color: var(--green-700); }
.dropdown-item.active, .dropdown-item:active {
  background: var(--green-tint);
  color: var(--green-700);
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--green);
}
.dropdown-item:focus-visible { outline-offset: -2px; }

.navbar-toggler { border: 2px solid var(--line); border-radius: 10px; padding: .35rem .58rem; color: var(--forest); }
.navbar-toggler:focus { box-shadow: none; }

/* Hover dropdown, desktop only */
@media (min-width: 992px) {
  .site-nav .dropdown > .dropdown-menu {
    display: block; margin-top: 0;
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
  }
  .site-nav .dropdown:hover > .dropdown-menu,
  .site-nav .dropdown:focus-within > .dropdown-menu,
  .site-nav .dropdown > .dropdown-menu.show {
    opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto;
  }
  .site-nav .dropdown > .dropdown-menu::before {
    content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px;
  }
  .site-nav .dropdown:hover > .nav-link { color: var(--forest); }
  .site-nav .dropdown:hover > .nav-link::after { transform: scaleX(1); }
}

/* 5. Hero slider ========================================================= */
.hero-slider { position: relative; background: var(--forest-deep); }

.hero-slide {
  position: relative;
  min-height: clamp(520px, 76vh, 760px);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(96deg, rgba(12, 44, 29, .93) 0%, rgba(12, 44, 29, .78) 38%, rgba(12, 44, 29, .38) 72%, rgba(12, 44, 29, .28) 100%),
    linear-gradient(180deg, rgba(12, 44, 29, .45) 0%, rgba(12, 44, 29, 0) 30%);
}
.hero-slide .container { position: relative; z-index: 2; }

.hero-content { max-width: 40rem; padding: clamp(3rem, 8vw, 5rem) 0; }
.hero-title {
  font-size: clamp(2.1rem, 4.8vw, 3.75rem);
  line-height: 1.07;
  letter-spacing: -.03em;
  color: #fff;
  margin-bottom: 1.15rem;
}
.hero-title span { color: var(--green-soft); }
.hero-lead {
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  color: rgba(255, 255, 255, .88);
  margin-bottom: 2rem;
  max-width: 34rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Slider controls */
.hero-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 5;
  width: 48px; height: 48px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .4);
  background: rgba(12, 44, 29, .35);
  color: #fff;
  display: grid; place-items: center;
  transition: background-color .2s ease, border-color .2s ease;
}
.hero-nav:hover { background: var(--green); border-color: var(--green); color: #fff; }
.hero-nav--prev { left: clamp(.75rem, 2vw, 1.75rem); }
.hero-nav--next { right: clamp(.75rem, 2vw, 1.75rem); }

.hero-dots {
  position: absolute;
  bottom: 1.5rem; left: 0; right: 0;
  z-index: 5;
  margin: 0;
  justify-content: center;
}
.hero-dots [data-bs-target] {
  width: 30px; height: 4px; border-radius: 2px;
  background: rgba(255, 255, 255, .4);
  border: 0; opacity: 1; margin: 0 4px;
  transition: background-color .25s ease, width .25s ease;
}
.hero-dots .active { background: var(--green-soft); width: 46px; }

/* Trust strip under the slider */
.hero-strip { background: var(--forest); }
.hero-strip .row { --bs-gutter-y: 0; }
.hero-strip-item {
  display: flex; align-items: center; gap: .8rem;
  padding: 1.15rem 0;
  color: #CBE0D2;
  font-family: var(--font-ui); font-size: .96rem; font-weight: 500;
}
.hero-strip-item i { color: var(--green-soft); font-size: 1.3rem; }
.hero-strip .col-md-4 + .col-md-4 .hero-strip-item { border-left: 1px solid rgba(255, 255, 255, .12); padding-left: 1.5rem; }

/* Slide animation */
@keyframes heroUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}
@keyframes heroZoom {
  from { transform: scale(1.12); }
  to   { transform: scale(1); }
}
.carousel-item.active .hero-bg { animation: heroZoom 9s ease-out both; }
.carousel-item.active .hero-content > * { animation: heroUp .85s cubic-bezier(.2, .7, .3, 1) both; }
.carousel-item.active .hero-content > *:nth-child(1) { animation-delay: .1s; }
.carousel-item.active .hero-content > *:nth-child(2) { animation-delay: .24s; }
.carousel-item.active .hero-content > *:nth-child(3) { animation-delay: .38s; }
.carousel-item.active .hero-content > *:nth-child(4) { animation-delay: .52s; }

/* 6. Sections ============================================================ */
.section { padding: var(--section-y) 0; }
.section--tight { padding: clamp(2.75rem, 5vw, 4.5rem) 0; }
.section--sand { background: var(--sand); }
.section-head { max-width: 44rem; }
.section-head.mx-auto { text-align: center; }
.section-head h2 { margin-bottom: .8rem; }

/* Plain media frame — small radius, no curve */
.media-frame { border-radius: var(--r-img); overflow: hidden; background: var(--green-tint); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

.figure-clinic img { width: 100%; border-radius: var(--r-img); object-fit: cover; }
.figure-caption-ui {
  margin-top: .8rem;
  font-family: var(--font-ui); font-size: .84rem; font-weight: 500;
  color: var(--muted);
}

.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.stat-cell { border-top: 3px solid var(--green); padding-top: .9rem; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.8vw, 2.3rem);
  font-weight: 700; color: var(--forest);
  line-height: 1; display: block;
}
.stat-label {
  font-family: var(--font-ui); font-size: .82rem; font-weight: 500;
  color: var(--muted); margin-top: .4rem; display: block;
}

.tick-list { list-style: none; padding: 0; margin: 0; }
.tick-list li { position: relative; padding-left: 1.85rem; margin-bottom: .6rem; }
.tick-list li::before {
  content: "\F26B";
  font-family: "bootstrap-icons";
  position: absolute; left: 0; top: -.05rem;
  color: var(--green); font-size: 1.02rem;
}

/* 7. Cards =============================================================== */
.svc-card {
  height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .26s ease, box-shadow .26s ease, border-color .26s ease;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); border-color: var(--green-bright); }
.svc-card-media { aspect-ratio: 16 / 10; overflow: hidden; }
.svc-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.svc-card:hover .svc-card-media img { transform: scale(1.05); }
.svc-card-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1 1 auto; }
.svc-card h3 { margin: 0 0 .55rem; font-size: 1.25rem; }
.svc-card p { color: var(--muted); font-size: .99rem; }
.svc-card p { margin-bottom: 1.25rem; }
.svc-card .btn, .svc-card .link-arrow { margin-top: auto; }
.svc-card .btn { align-self: flex-start; }
.svc-card--plain { padding: 2rem 1.75rem; }
.svc-card--plain h3 { margin-top: .9rem; }

/* Service detail block */
.svc-detail { padding: clamp(1rem, 3vw, 2rem) 0; }
.svc-detail + .svc-detail { border-top: 1px solid var(--line); }

/* Team — no social row in this design */
.team-card { height: 100%; }
.team-photo { border-radius: var(--r-img); overflow: hidden; background: var(--green-tint); }
.team-photo img { width: 100%; aspect-ratio: 1 / 1.08; object-fit: cover; transition: transform .6s ease; }
.team-card:hover .team-photo img { transform: scale(1.04); }
.team-body { padding: 1.15rem .15rem 0; }
.team-body h3 { font-size: 1.18rem; margin-bottom: .1rem; }
.team-role { font-family: var(--font-ui); font-size: .95rem; color: var(--green); font-weight: 600; }
.team-cred { font-family: var(--font-ui); font-size: .85rem; color: var(--muted); display: block; margin-top: .3rem; }

/* Blog */
.post-card {
  height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .26s ease, box-shadow .26s ease, border-color .26s ease;
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); border-color: var(--green-bright); }
.post-media { aspect-ratio: 16 / 10; overflow: hidden; display: block; }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.post-card:hover .post-media img { transform: scale(1.05); }
.post-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1 1 auto; }
.post-meta {
  display: flex; align-items: center; gap: .55rem; flex-wrap: wrap;
  font-family: var(--font-ui); font-size: .84rem; color: var(--muted);
  margin-bottom: .8rem;
}
.post-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--green-bright); }
.post-body h3 { font-size: 1.24rem; margin-bottom: .55rem; }
.post-body h3 a { color: var(--ink); }
.post-body h3 a:hover { color: var(--green); }
.post-body p { color: var(--muted); font-size: .99rem; }
.post-body .link-arrow { margin-top: auto; padding-top: 1.05rem; }

.widget { background: var(--sand); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.6rem; margin-bottom: 1.5rem; }
.widget h3 { font-size: 1.12rem; margin-bottom: 1rem; }
.mini-post { display: flex; gap: .85rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.mini-post:last-child { border-bottom: 0; padding-bottom: 0; }
.mini-post img { width: 74px; height: 62px; border-radius: 8px; object-fit: cover; flex: none; }
.mini-post h4 { font-size: .96rem; margin: 0 0 .2rem; line-height: 1.35; }
.mini-post h4 a { color: var(--ink); }
.mini-post span { font-family: var(--font-ui); font-size: .8rem; color: var(--muted); }

.article-body { font-size: 1.08rem; line-height: 1.85; }
.article-body h2 { margin: 2.3rem 0 .95rem; font-size: 1.7rem; }
.article-body h3 { margin: 1.8rem 0 .7rem; }
.article-body ul { padding-left: 1.15rem; margin-bottom: 1.25rem; }
.article-body li { margin-bottom: .5rem; }
.article-body blockquote {
  border-left: 4px solid var(--green);
  background: var(--green-tint);
  padding: 1.3rem 1.55rem;
  border-radius: 0 var(--r) var(--r) 0;
  font-family: var(--font-display); font-weight: 500;
  font-size: 1.22rem; color: var(--forest);
  margin: 1.85rem 0;
}

/* 8. Dark bands & chairman =============================================== */
.section--forest {
  background:
    radial-gradient(45% 55% at 88% 4%, rgba(78, 151, 98, .3) 0%, rgba(78, 151, 98, 0) 60%),
    var(--forest);
  color: #C0D8C9;
}
.section--forest h2, .section--forest h3 { color: #fff; }
.section--forest .lead-text { color: #A3C0AD; }

.why-tile {
  height: 100%;
  background: rgba(255, 255, 255, .06);
  border-radius: var(--r-lg);
  padding: 1.7rem;
  transition: background-color .25s ease, transform .25s ease;
}
.why-tile:hover { background: rgba(255, 255, 255, .11); transform: translateY(-5px); }
.why-tile .ico-tile { background: var(--green-bright); color: #fff; margin-bottom: 1.05rem; }
.why-tile h3 { font-size: 1.12rem; margin-bottom: .45rem; }
.why-tile p { font-size: .97rem; color: #A3C0AD; margin: 0; }

.chairman-portrait { position: relative; }
.chairman-portrait .media-frame img { aspect-ratio: 4 / 4.4; }
.chairman-badge {
  position: absolute; right: -1rem; bottom: 1.5rem;
  background: #fff; border-radius: var(--r);
  padding: .9rem 1.1rem; box-shadow: var(--shadow-2); max-width: 15rem;
}
.chairman-badge strong { font-family: var(--font-display); display: block; font-size: 1.02rem; color: var(--forest); }
.chairman-badge span { font-family: var(--font-ui); font-size: .83rem; color: var(--green); }
.signature { font-family: var(--font-body); font-style: italic; font-size: 1.5rem; color: var(--green); margin-top: 1.4rem; }

/* 9. Testimonials & FAQ ================================================== */
.tst-carousel { max-width: 54rem; margin: 0 auto; }
.tst-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.6rem, 4vw, 2.75rem);
  position: relative;
}
.tst-stars { color: var(--gold); font-size: .98rem; letter-spacing: .12em; margin-bottom: 1rem; }
.tst-quote { font-size: clamp(1.06rem, 1.8vw, 1.3rem); line-height: 1.65; color: var(--ink); margin-bottom: 1.5rem; }
.tst-person { display: inline-flex; align-items: center; gap: .85rem; }
.tst-person img { width: 56px; height: 56px; border-radius: var(--r-sm); object-fit: cover; }
.tst-person strong { font-family: var(--font-display); display: block; color: var(--forest); font-size: 1rem; }
.tst-person span { font-family: var(--font-ui); font-size: .85rem; color: var(--muted); }

.carousel-indicators.tst-dots { position: static; margin: 0; }
.carousel-indicators.tst-dots [data-bs-target] {
  width: 24px; height: 3px; border-radius: 2px;
  background: var(--line); border: 0; opacity: 1; margin: 0 4px;
}
.carousel-indicators.tst-dots .active { background: var(--green); }
.tst-nav {
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--line); background: #fff; color: var(--forest);
  display: grid; place-items: center;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.tst-nav:hover { background: var(--green); border-color: var(--green); color: #fff; }

.tst-card { height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.75rem; }

.accordion-item {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r) !important;
  margin-bottom: .8rem; overflow: hidden;
}
.accordion-button {
  font-family: var(--font-display);
  font-size: 1.08rem; font-weight: 600; color: var(--forest);
  padding: 1.15rem 1.35rem; background: #fff;
}
.accordion-button:not(.collapsed) { background: var(--green-tint); color: var(--green-700); box-shadow: none; }
.accordion-button:focus { box-shadow: 0 0 0 4px rgba(47, 100, 66, .14); }
.accordion-button::after {
  --bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%235A7263'%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");
  --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2324502F'%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");
}
.accordion-body { padding: 0 1.35rem 1.35rem; color: var(--muted); }

/* 10. CTA band & page hero =============================================== */
.cta-band {
  position: relative;
  background:
    radial-gradient(55% 100% at 88% 40%, rgba(78, 151, 98, .42) 0%, rgba(78, 151, 98, 0) 65%),
    linear-gradient(105deg, var(--forest-deep) 0%, var(--forest-2) 100%);
  color: #fff;
  border-radius: var(--r-lg);
  padding: clamp(2rem, 5vw, 3.25rem);
  overflow: hidden;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .86); margin-bottom: 0; }

.page-hero {
  position: relative;
  padding: clamp(2.75rem, 6vw, 4.5rem) 0;
  background:
    radial-gradient(40% 80% at 92% 15%, rgba(78, 151, 98, .32) 0%, rgba(78, 151, 98, 0) 62%),
    linear-gradient(105deg, var(--forest-deep) 0%, var(--forest-2) 100%);
  color: #C0D8C9;
}
.page-hero h1 { color: #fff; margin-bottom: .7rem; }
.page-hero p { color: #A3C0AD; max-width: 40rem; margin: 0; font-size: 1.08rem; }
.crumb { font-family: var(--font-ui); font-size: .85rem; font-weight: 500; color: #8FAE99; margin-bottom: .9rem; }
.crumb a { color: var(--green-soft); }
.crumb a:hover { color: #fff; }
.crumb span { padding: 0 .45rem; color: rgba(255, 255, 255, .35); }

/* 11. Forms ============================================================== */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.35rem, 3.5vw, 2.4rem); box-shadow: var(--shadow-1); }
.form-label { font-family: var(--font-ui); font-size: .87rem; font-weight: 600; color: var(--forest); margin-bottom: .4rem; }
.form-label .req { color: #B4552C; }
.form-control, .form-select {
  font-family: var(--font-ui);
  border: 2px solid var(--line);
  border-radius: var(--r-sm);
  padding: .78rem 1rem;
  font-size: .97rem;
  color: var(--ink);
  background-color: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-control::placeholder { color: #9BB0A2; }
.form-control:focus, .form-select:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(47, 100, 66, .13); }
.form-control.is-invalid, .form-select.is-invalid { border-color: #B4552C; background-image: none; }
.invalid-feedback { font-family: var(--font-ui); font-size: .85rem; color: #B4552C; }
.form-note { font-family: var(--font-ui); font-size: .86rem; color: var(--muted); }
.form-check-input { border: 2px solid var(--line); width: 1.15em; height: 1.15em; margin-top: .25em; }
.form-check-input:checked { background-color: var(--green); border-color: var(--green); }
.form-check-input:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(47, 100, 66, .13); }
.form-check-input.is-invalid { border-color: #B4552C; }

.form-alert {
  display: none;
  border-radius: var(--r-sm);
  padding: 1rem 1.1rem;
  background: var(--green-tint);
  color: var(--green-700);
  font-family: var(--font-ui); font-size: .95rem; font-weight: 500;
}
.form-alert i { margin-right: .4rem; }

.contact-tile { display: flex; gap: 1rem; padding: 1.35rem 0; border-bottom: 1px solid var(--line); }
.contact-tile:last-child { border-bottom: 0; }
.contact-tile h3 { font-size: 1.05rem; margin-bottom: .2rem; }
.contact-tile p { margin: 0; color: var(--muted); font-size: .99rem; }
.contact-tile a { color: var(--ink-2); }
.contact-tile a:hover { color: var(--green); }

.map-frame { border-radius: var(--r-img); overflow: hidden; line-height: 0; border: 1px solid var(--line); }
.map-frame iframe { width: 100%; height: 420px; border: 0; display: block; }

.newsletter-box { background: var(--forest); border-radius: var(--r-lg); padding: 1.75rem; color: #C0D8C9; }
.newsletter-box h3 { color: #fff; font-size: 1.12rem; }
.newsletter-box .form-control { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); color: #fff; }
.newsletter-box .form-control::placeholder { color: #8FAE99; }

.input-group .form-control { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group .btn { border-radius: 0 var(--r-sm) var(--r-sm) 0; }

.pagination { gap: .4rem; }
.page-link {
  font-family: var(--font-ui);
  border: 1px solid var(--line);
  border-radius: var(--r-sm) !important;
  color: var(--ink-2); font-weight: 600; font-size: .92rem;
  min-width: 42px; text-align: center; padding: .55rem .75rem;
}
.page-link:hover { background: var(--green-tint); color: var(--green-700); border-color: var(--green); }
.page-item.active .page-link { background: var(--green); border-color: var(--green); color: #fff; }
.page-link:focus { box-shadow: 0 0 0 4px rgba(47, 100, 66, .13); }

/* 12. Footer & floats ==================================================== */
.site-footer {
  background: var(--forest-deep);
  color: #A3C0AD;
  padding-top: clamp(2.75rem, 6vw, 4.25rem);
  font-size: .99rem;
}
.site-footer h3 {
  font-family: var(--font-ui);
  font-size: .9rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--green-soft);
  margin-bottom: 1.15rem;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: #A3C0AD; display: inline-block; transition: color .2s ease, padding-left .2s ease; }
.footer-links a:hover { color: #fff; padding-left: 4px; }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { display: flex; gap: .7rem; margin-bottom: .8rem; }
.footer-contact i { color: var(--green-soft); margin-top: .25rem; }
.footer-contact a { color: #A3C0AD; }
.footer-contact a:hover { color: #fff; }
.footer-social { display: flex; gap: .5rem; margin-top: 1.2rem; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  display: grid; place-items: center; color: #C0D8C9;
}
.footer-social a:hover { background: var(--green-bright); color: #fff; }
.footer-map { border-radius: var(--r-img); overflow: hidden; line-height: 0; margin-top: 1rem; }
.footer-map iframe { width: 100%; height: 140px; border: 0; display: block; filter: grayscale(1) contrast(.95) brightness(1.05); }

.footer-bottom {
  margin-top: clamp(2.25rem, 5vw, 3.25rem);
  border-top: 1px solid rgba(255, 255, 255, .13);
  padding: 1.3rem 0;
  font-family: var(--font-ui);
  font-size: .87rem; color: #8FAE99;
}
.footer-bottom a { color: #A3C0AD; }
.footer-disclaimer { font-size: .81rem; color: #78957F; max-width: 48rem; }
.footer-credit {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 500; color: #A3C0AD;
}
.footer-credit a { color: var(--green-soft); font-weight: 600; }
.footer-credit a:hover { color: #fff; }

#backToTop {
  position: fixed; right: 1.15rem; bottom: 1.15rem;
  width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: var(--green); color: #fff;
  display: grid; place-items: center;
  box-shadow: var(--shadow-2);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
  z-index: 1040;
}
#backToTop.show { opacity: 1; visibility: visible; transform: translateY(0); }
#backToTop:hover { background: var(--forest); }

.wa-float {
  position: fixed; right: 1.15rem; bottom: 4.9rem;
  width: 46px; height: 46px; border-radius: 50%;
  background: #25a35a; color: #fff;
  display: grid; place-items: center;
  box-shadow: var(--shadow-2); z-index: 1040; font-size: 1.3rem;
}
.wa-float:hover { color: #fff; background: #1e8c4c; }

/* 13. Motion ============================================================= */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* 14. Responsive ========================================================= */
/* Large tablets / small laptops */
@media (max-width: 1199.98px) {
  .site-nav .nav-link { padding: .6rem .7rem; font-size: .94rem; }
  .brand img { height: 46px; }
  .chairman-badge { right: 0; }
}

/* Tablets */
@media (max-width: 991.98px) {
  .site-nav .navbar-collapse {
    margin-top: .75rem;
    border-top: 1px solid var(--line);
    padding-top: .5rem;
    max-height: 78vh; overflow-y: auto;
  }
  .site-nav .nav-link { padding: .75rem .25rem; font-size: 1rem; }
  .site-nav .nav-link::after { left: .25rem; right: auto; width: 26px; bottom: .5rem; }
  .site-nav .dropdown-menu { box-shadow: none; background: var(--sand); padding-left: .5rem; margin: .25rem 0 .5rem; }
  .site-nav .btn-sm-pill { display: block; text-align: center; margin-top: .5rem; }

  .hero-slide { min-height: 520px; }
  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(12, 44, 29, .55) 0%, rgba(12, 44, 29, .88) 78%),
      linear-gradient(96deg, rgba(12, 44, 29, .8) 0%, rgba(12, 44, 29, .5) 100%);
  }
  .hero-content { max-width: 100%; padding: 4.5rem 0 4rem; }
  .hero-nav { width: 42px; height: 42px; }
  .hero-strip .col-md-4 + .col-md-4 .hero-strip-item { border-left: 0; padding-left: 0; }
  .hero-strip-item { padding: .85rem 0; }

  .chairman-portrait { max-width: 24rem; margin: 0 auto 2.5rem; }
  .chairman-portrait .media-frame img { aspect-ratio: 4 / 3.8; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1.25rem; }
  .map-frame iframe { height: 360px; }
}

/* Phones */
@media (max-width: 767.98px) {
  body { font-size: 1.02rem; }
  .hero-slide { min-height: 440px; }
  .hero-content { padding: 3.5rem 0 3.75rem; }
  .hero-lead { margin-bottom: 1.5rem; }
  .hero-actions .btn { flex: 1 1 100%; text-align: center; }
  .hero-nav { display: none; }
  .hero-dots { bottom: 1rem; }
  .hero-dots [data-bs-target] { width: 22px; }
  .hero-dots .active { width: 34px; }

  .section-head { max-width: 100%; }
  .map-frame iframe { height: 300px; }
  .footer-bottom { text-align: center; }
  .footer-credit { justify-content: center; margin-top: .5rem; }
  .cta-band { text-align: center; }
  .cta-band .btn { width: 100%; margin-left: 0 !important; }
  .tst-person { flex-wrap: wrap; }
  .widget { padding: 1.35rem; }
}

/* Small phones */
@media (max-width: 575.98px) {
  .brand img { height: 38px; }
  .site-nav.is-stuck .brand img { height: 34px; }
  .hero-title { font-size: clamp(1.8rem, 8vw, 2.3rem); }
  .stat-strip { gap: 1.25rem 1rem; }
  .svc-card-body, .post-body { padding: 1.25rem; }
  .team-body { padding-top: .9rem; }
  .team-body h3 { font-size: 1rem; }
  .team-role { font-size: .87rem; }
  .team-cred { font-size: .78rem; }
  .hero-strip-item { font-size: .9rem; padding: .7rem 0; }
  .btn { padding: .75rem 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .carousel-item.active .hero-bg,
  .carousel-item.active .hero-content > * { animation: none !important; }
}

@media print {
  .topbar, .site-nav, #backToTop, .wa-float, .cta-band, .site-footer, .hero-nav, .hero-dots { display: none !important; }
}

/* 15. CMS additions =======================================================
   The only rule added during the Laravel conversion. It introduces an error
   state for the shared .form-alert box (which the static demo never needed,
   because it only ever showed a success message). Nothing above is changed.
   ======================================================================== */
.form-alert.is-error { background: #FBEDEA; color: #9B2C1B; }
