/* ==========================================================================
   SARAD — page-builder blocks, redesigned
   --------------------------------------------------------------------------
   Loaded after the theme stylesheets. The blocks now carry their own `sb-`
   markup, so none of the theme's block CSS reaches them and this file is the
   whole story for those sections. The header, navigation and footer are
   untouched — they render from the theme exactly as on the live site.

   No content changed: same blocks, same fields, same copy and images.

   Palette and type are the site's own, read out of its stylesheets:
   olive #647839 accent, #2a2c6f headings, Open Sans body / Raleway display.
   Light throughout — no dark sections.
   ========================================================================== */

.sb {
  --a:      #647839;   /* the site's accent */
  --a-dk:   #4E5E2C;
  --a-soft: #EFF2E8;
  --ink:    #2A2C6F;   /* headings and rules */
  --body:   #6A6D78;
  --rule:   #E3E5F0;
  --panel:  #FFFFFF;
  --sunk:   #F4F5FA;   /* faint tint of the ink */
  --shadow: 0 1px 2px rgba(42,44,111,.05), 0 12px 30px -18px rgba(42,44,111,.22);
  --radius: 12px;
  --wrap:   1180px;

  --display: Raleway, "Segoe UI", Arial, sans-serif;
  --text:    "Open Sans", "Segoe UI", Arial, sans-serif;

  position: relative;
  font-family: var(--text);
  color: var(--body);
  background: var(--panel);
}

.sb *, .sb *::before, .sb *::after { box-sizing: border-box; }

.sb-wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* ------------------------------------------------------------- type scale */

.sb-eyebrow {
  margin: 0 0 10px;
  font-family: var(--text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--a);
}

.sb-h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.1vw, 2.3rem);
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -.01em;
}

.sb-head { max-width: 62ch; margin-bottom: 38px; }

.sb-lead {
  margin: 18px 0 0;
  max-width: 74ch;
  font-size: 16px;
  line-height: 1.85;
  color: var(--body);
}

/* ---------------------------------------------------------------- buttons */

.sb-btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 6px;
  border: 1px solid var(--a);
  background: var(--a);
  color: #fff;
  font-family: var(--text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background .16s, border-color .16s, color .16s;
}
.sb-btn:hover, .sb-btn:focus { background: var(--a-dk); border-color: var(--a-dk); color: #fff; text-decoration: none; }

.sb-btn-ghost { background: transparent; color: var(--a); border-color: var(--rule); }
.sb-btn-ghost:hover { background: var(--a-soft); color: var(--a-dk); border-color: var(--a); }

.sb-btn-light { background: var(--a); border-color: var(--a); color: #fff; }
.sb-btn-light:hover { background: var(--a-dk); border-color: var(--a-dk); color: #fff; }

.sb-actions { margin: 30px 0 0; }

/* ------------------------------------------------------------------ grids */

.sb-grid { display: grid; gap: 22px; }
.sb-grid-1 { grid-template-columns: 1fr; }
.sb-grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.sb-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (min-width: 720px)  { .sb-grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .sb-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ============================================================== 1. hero ==
   Full-bleed image with the caption in a bar beneath it. These banners carry
   their own typeset text, so an overlaid caption would land on top of it. */

.sb-hero { padding: 0; background: var(--sunk); }
.sb-hero-track { position: relative; }
.sb-hero-slide { margin: 0; }
.sb-hero-slide[hidden] { display: none; }
.sb-hero-slide img { display: block; width: 100%; height: auto; }

.sb-hero-cap {
  background: #F4F5FA;
  border-bottom: 3px solid var(--a);
  color: var(--ink);
  padding: 18px 0;
}
.sb-hero-title {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  line-height: 1.3;
  color: var(--ink);
}
.sb-hero-sub { display: block; margin-top: 4px; font-size: 14px; color: var(--body); }

.sb-dots { display: flex; justify-content: center; gap: 8px; padding: 18px 0; }
.sb-dots button {
  width: 28px; height: 4px; padding: 0;
  border: none; border-radius: 2px;
  background: #D5DAE0;
  cursor: pointer;
}
.sb-dots button[aria-selected="true"] { background: var(--a); }

/* ============================================================= 2. about == */

.sb-about { padding: 84px 0; background: var(--panel); }
.sb-about .sb-lead { font-size: 16.5px; }

/* ========================================================= 3. what we do == */

.sb-what { padding: 84px 0; background: var(--sunk); }

.sb-card {
  display: flex;
  flex-direction: column;
  padding: 30px 26px;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .16s, border-color .16s;
}
.sb-card:hover { transform: translateY(-3px); border-color: var(--a); }

.sb-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px; height: 58px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--a-soft);
}
.sb-icon img { width: 30px; height: 30px; object-fit: contain; display: block; }

.sb-card-title {
  margin: 0 0 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.3;
  color: var(--ink);
}
.sb-card-text { margin: 0; font-size: 14.5px; line-height: 1.75; color: var(--body); }

/* =============================================================== 4. cta == */

.sb-cta {
  padding: 70px 0;
  background: #EEF0F8;
  border-top: 1px solid #E1E4F0;
  border-bottom: 1px solid #E1E4F0;
  overflow: hidden;
}
.sb-cta-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .12;
  filter: saturate(.5);
}
.sb-cta-inner {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
  gap: 24px;
}
.sb-cta-title { color: var(--ink); }
.sb-cta-sub { margin: 10px 0 0; color: var(--body); max-width: 60ch; }

/* ============================================================ 5. events == */

.sb-events { padding: 84px 0; background: var(--panel); }

.sb-event {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.sb-event-media { background: var(--sunk); }
.sb-event-media img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

.sb-event-body {
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  padding: 26px 28px 30px;
}
.sb-event-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.32;
  color: var(--ink);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--a);
}

@media (min-width: 860px) {
  .sb-event-wide { flex-direction: row; }
  .sb-event-wide .sb-event-media { flex: 0 0 46%; }
  .sb-event-wide .sb-event-media img { height: 100%; aspect-ratio: auto; min-height: 300px; }
  .sb-event-wide .sb-event-body { justify-content: center; padding: 34px 38px; }
}

/* ============================================================== 6. team == */

.sb-team { padding: 84px 0; background: var(--sunk); }

.sb-member {
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .16s, border-color .16s;
}
.sb-member:hover { transform: translateY(-3px); border-color: var(--a); }

.sb-member-photo {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--sunk);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.sb-member-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

.sb-initials {
  width: 78px; height: 78px;
  border-radius: 50%;
  background: var(--a);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display);
  font-size: 1.85rem;
  font-weight: 600;
}

.sb-member-cap { padding: 16px 16px 20px; text-align: center; border-top: 1px solid var(--rule); }
.sb-member-name {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.35;
  color: var(--ink);
}
.sb-member-role { display: block; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--a); }

/* ================================================= content & package pages
   Page, package, event and news bodies render inside the theme's
   .about-section.style-two. The stored copy is justified at full container
   width; same content, set to read. */

.about-section.style-two .sec-title .text,
.about-section.style-two .sec-title .text * { text-align: left !important; }

.about-section.style-two .sec-title .text {
  max-width: 78ch;
  font-size: 16px;
  line-height: 1.85;
  color: #6A6D78;
}
.about-section.style-two .sec-title .text p { margin-bottom: 1.15em; }
.about-section.style-two .sec-title .text img { border-radius: 10px; margin: 22px 0; height: auto; }
.about-section.style-two .sec-title .text h2,
.about-section.style-two .sec-title .text h3,
.about-section.style-two .sec-title .text h4 { color: #2A2C6F; margin: 1.6em 0 .5em; line-height: 1.3; }
.about-section.style-two .sec-title .text ul,
.about-section.style-two .sec-title .text ol { padding-left: 22px; margin-bottom: 1.15em; }
.about-section.style-two .sec-title .text li { margin-bottom: .45em; }
.about-section.style-two .sec-title .text a { color: #647839; }

.about-section.style-two .sec-title .sub-title {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  color: #2A2C6F;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 2px solid #647839;
  display: inline-block;
}

.about-section.style-two .sec-title .text table {
  width: 100%; border-collapse: collapse;
  display: block; overflow-x: auto; font-size: 14.5px;
}
.about-section.style-two .sec-title .text td,
.about-section.style-two .sec-title .text th { border: 1px solid #E3E5F0; padding: 9px 12px; }

/* ------------------------------------------------------------------- misc */

/* The theme animates sections in with WOW.js; without that script running the
   elements would otherwise stay invisible. */
.wow { visibility: visible !important; }

@media (prefers-reduced-motion: reduce) {
  .sb-card, .sb-member { transition: none; }
}

/* About: two columns only when the optional image is set. */
.sb-about-split { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) {
  .sb-about-split { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; }
}
.sb-about-figure { margin: 0; }
.sb-about-figure img {
  width: 100%; height: auto; display: block;
  border-radius: 12px;
  box-shadow: 0 18px 40px -24px rgba(42,44,111,.35);
}

/* ============================================================== contact ==
   Same four contacts, same form. The role leads each card because that is
   what someone scanning for the right person looks for first. */

.sc-people { padding: 78px 0 84px; background: var(--panel); }
.sc-head { margin-bottom: 34px; }

.sc-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
}

.sc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 26px 28px;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .16s, border-color .16s, box-shadow .16s;
}
.sc-card::before {
  content: "";
  position: absolute;
  left: 26px; top: -1px;   /* overlap the border so the tab sits flush */
  width: 34px; height: 3px;
  background: var(--a);
  border-radius: 0 0 3px 3px;
}
.sc-card:hover {
  transform: translateY(-3px);
  border-color: var(--a);
  box-shadow: 0 1px 2px rgba(42,44,111,.05), 0 18px 36px -20px rgba(42,44,111,.34);
}

.sc-role {
  margin: 6px 0 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--a);
}

.sc-name {
  margin: 0 0 16px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.08rem;
  line-height: 1.35;
  color: var(--ink);
}

.sc-details { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.sc-details li {
  display: grid;
  grid-template-columns: 26px 1fr;
  align-items: start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--body);
}
.sc-details a { color: var(--body); text-decoration: none; word-break: break-word; }
.sc-details a:hover { color: var(--a); text-decoration: underline; }

.sc-ico {
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--a-soft);
  color: var(--a);
  font-size: 11px;
}

/* ---------------------------------------------------------- contact form */

.sc-form-section { padding: 0 0 90px; background: var(--panel); }

.sc-form-layout { display: grid; gap: 26px; grid-template-columns: 1fr; }
@media (min-width: 1000px) {
  .sc-form-layout.has-map { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: stretch; }
}

.sc-form-card {
  padding: 38px 38px 40px;
  background: var(--sunk);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
@media (max-width: 600px) { .sc-form-card { padding: 26px 22px 30px; } }

.sc-form {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .sc-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sc-field-wide { grid-column: 1 / -1; }

.sc-field { display: flex; flex-direction: column; gap: 7px; }
.sc-field label {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--ink);
}
.sc-field label span { color: var(--a); }

.sc-field input,
.sc-field textarea {
  width: 100%;
  padding: 12px 15px;
  font-family: var(--text);
  font-size: 14.5px;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid #D8DBEA;
  border-radius: 8px;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .15s, box-shadow .15s;
}
.sc-field textarea { resize: vertical; min-height: 150px; }
.sc-field input::placeholder,
.sc-field textarea::placeholder { color: #9295B4; }
.sc-field input:focus,
.sc-field textarea:focus {
  outline: none;
  border-color: var(--a);
  box-shadow: 0 0 0 3px rgba(100,120,57,.14);
}

.sc-actions { align-items: flex-start; }
.sc-actions .sb-btn { padding: 13px 34px; }

.sc-map {
  min-height: 340px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sunk);
}
.sc-map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

/* Validation and status messages from admin.message. */
.sc-form-card .alert {
  padding: 13px 16px;
  margin-bottom: 20px;
  border-radius: 8px;
  font-size: 14px;
  border: 1px solid transparent;
}
.sc-form-card .alert-success { background: #EDF5EE; border-color: #C5DEC9; color: #3B6E45; }
.sc-form-card .alert-danger  { background: #FBEDED; border-color: #E9C6C6; color: #A33B3B; }

@media (prefers-reduced-motion: reduce) { .sc-card { transition: none; } }
