/* ============================================================
   Stone Family Foundation — Training Clone (static)
   Brand palette:
     --blue      #375af5  (primary / Stone Blue)
     --navy      #162269  (dark navy headings)
     --light     #f4f6fd  (soft blue-tinted background)
     --link      #1959ff
   Fonts (approximation — live site uses Joly Display + DM Sans):
     headings -> Georgia / serif fallback family
     body     -> system sans stack
   ============================================================ */

:root {
  --blue: #375af5;
  --navy: #162269;
  --light: #f4f6fd;
  --sky: #c5d3f3;
  --text: #333333;
  --muted: #626262;
  --white: #ffffff;

  --font-head: "Joly Display", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --max-width: 1200px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(22, 34, 105, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.2;
  font-weight: 600;
}

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

/* ------------------------------------------------------------
   HEADER  (dark navy bar · 3-column split menu, logo centred)
   Mirrors .et_pb_section_0_tb_header (background #162269).
   ------------------------------------------------------------ */
.site-header {
  position: relative;
  z-index: 100;
  background: var(--navy);
  padding: 25px 0 12px;
}

.row_menu {
  display: flex;
  align-items: center;
  gap: 20px;
}
.row_menu .left-menu,
.row_menu .right-menu { flex: 1; }
.center-logo { text-align: center; max-width: 210px; flex: 0 0 auto; }
.center-logo img { height: 46px; width: auto; }

/* nav menus — white text on navy */
.et_pb_menu .et-menu {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}
.left-menu .et-menu { justify-content: flex-end; }
.right-menu .et-menu { justify-content: flex-start; }

.et_pb_menu .menu-item { position: relative; }
.et_pb_menu .menu-item > a {
  font-weight: 500;
  font-size: 1rem;
  color: #fff;
  padding: 8px 0;
}
.et_pb_menu .menu-item.has-children > a::after {
  content: "▾";
  font-size: 0.7rem;
  margin-left: 6px;
  color: var(--blue);
}
.et_pb_menu .menu-item > a:hover { color: #d9e0ff; }

.et_pb_menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: var(--white);
  border: 1px solid rgba(22, 34, 105, 0.08);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 8px 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.2s ease;
  z-index: 20;
}
.left-menu .sub-menu { left: auto; right: 0; }
.et_pb_menu .menu-item:hover > .sub-menu,
.et_pb_menu .menu-item:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.et_pb_menu .sub-menu a {
  display: block;
  padding: 9px 20px;
  font-size: 0.93rem;
  color: var(--navy);
}
.et_pb_menu .sub-menu a:hover { background: var(--light); color: var(--blue); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: #fff;
  border-radius: 3px;
  transition: 0.2s;
}

/* ------------------------------------------------------------
   HERO  (dark navy panel + swirl "WaterVisual" background)
   Mirrors .et_pb_section_0
     background-color: #162269
     background-image: url(assets/img/water-visual-blue.png.webp)
   ------------------------------------------------------------ */
.hero {
  position: relative;
  background-color: var(--navy);
  background-image: url("../assets/img/water-visual-blue.png.webp");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 70px 0 60px;
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 2; }

.hero .et_pb_row_0 { text-align: center; }
.hero .et_pb_text_0 .et_pb_text_inner h1 {
  color: #fff;
  font-size: clamp(2.2rem, 4.2vw, 3.35rem);
  margin-bottom: 22px;
  padding-bottom: 0;
  line-height: 1.1;
  white-space: nowrap;
}
.hero .et_pb_text_1 {
  max-width: 850px;
  margin: 0 auto;
}
.hero .hero-lead {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  color: #e7ecff;
  line-height: 1.3;
}

/* Row 1 — two half-width, white-bordered image columns (.img_border) */
.hero .et_pb_row_1 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 48px;
}
.hero .et_pb_image { position: relative; }

/* white border frame, as on the original (.img_border:before) */
.hero .img_border img {
  position: relative;
  z-index: 0;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 3px;
}
.hero .img_border::before {
  content: "";
  display: inline-block;
  position: absolute;
  top: -10px;
  left: -10px;
  width: 100%;
  height: 100%;
  border-radius: 3px;
  background: #fff;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.98rem;
  text-align: center;
  transition: 0.2s ease;
  cursor: pointer;
}
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--navy); }
.btn--ghost { border: 2px solid var(--blue); color: var(--blue); background: transparent; }
.btn--ghost:hover { background: var(--blue); color: #fff; }

/* ------------------------------------------------------------
   SECTION SHARED
   ------------------------------------------------------------ */
.section { padding: 84px 0; }
.section--tint { background: var(--light); }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 12px;
}
.section-head { margin-bottom: 48px; max-width: 760px; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 14px; }
.section-head p { color: var(--muted); }

/* Feature cards (Water to the Home / UK Grant Giving) */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.feature-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 3 / 3.4;
  display: flex;
  align-items: flex-end;
  color: #fff;
}
.feature-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-card .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22,34,105,0) 30%, rgba(22,34,105,0.65) 75%, rgba(22,34,105,0.9) 100%);
}
.feature-card .content {
  position: relative;
  z-index: 2;
  padding: 34px;
  width: 100%;
}
.feature-card h3 { color: #fff; font-size: 1.8rem; margin-bottom: 10px; }
.feature-card p { color: rgba(255,255,255,0.9); margin-bottom: 18px; }
.feature-card .cta {
  font-weight: 700;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid rgba(255,255,255,0.6);
  padding-bottom: 2px;
}
.feature-card .cta:hover { border-color: #fff; }

/* ------------------------------------------------------------
   MISSION / STORY SPLIT
   ------------------------------------------------------------ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split--reverse .split-media { order: 2; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.split-copy h2 { margin-bottom: 18px; }
.split-copy p { color: #444; margin-bottom: 16px; }
.split-copy .eyebrow { color: var(--blue); }

/* ------------------------------------------------------------
   CASE STUDIES
   ------------------------------------------------------------ */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.case-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: 0.2s ease;
}
.case-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(22,34,105,0.16); }
.case-card .thumb { height: 200px; overflow: hidden; }
.case-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.case-card .body { padding: 26px; }
.case-card .tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  background: var(--light);
  padding: 5px 12px;
  border-radius: 30px;
  margin-bottom: 12px;
}
.case-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.case-card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 16px; }
.case-card a.read-more { font-weight: 700; font-size: 0.95rem; }
.case-card a.read-more:hover { color: var(--navy); }

/* ------------------------------------------------------------
   FOOTER  (centred navy footer, mirrors the original)
   ------------------------------------------------------------ */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  padding: 60px 0 40px;
  text-align: center;
}
.site-footer .et_pb_row_0_tb_footer { display: flex; flex-direction: column; align-items: center; }

.footer-logo img { height: 52px; width: auto; margin-bottom: 40px; }

.footer-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px 48px;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto 48px;
}
.footer-group {
  text-align: left;
  min-width: 160px;
}
.footer-group .footer-heading {
  display: inline-block;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

/* Social-media training block — sits in the empty area to the right
   of the footer link columns (the marked square). */
.footer-social {
  min-width: 220px;
  text-align: left;
  margin-left: auto;
  align-self: flex-start;
}
.footer-social .footer-heading {
  display: block;
  margin-bottom: 18px;
}
.footer-group ul { list-style: none; }
.footer-group ul li a {
  display: inline-block;
  color: rgba(255,255,255,0.75);
  padding: 4px 0;
  font-size: 0.9rem;
}
.footer-group ul li a:hover { color: #fff; }

.et_pb_text_0_tb_footer {
  max-width: 760px;
  margin: 0 auto 22px;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* footer_bot — legal links in a centred row with "·" separators */
.footer_bot ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 0;
}
.footer_bot ul li { display: inline-block; }
.footer_bot ul li:not(:last-child)::after {
  content: "·";
  display: inline-block;
  margin: 0 12px;
  color: rgba(255,255,255,0.5);
}
.footer_bot a { color: rgba(255,255,255,0.75); font-size: 0.85rem; }
.footer_bot a:hover { color: #fff; }

/* ------------------------------------------------------------
   SOCIAL-MEDIA TRAINING BLOCK (inside the footer, empty area)
   ------------------------------------------------------------ */
.training-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.training-facebook-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 50px;
  background: #1877f2;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  transition: 0.2s ease;
}
.training-facebook-button svg { width: 20px; height: 20px; fill: #fff; }
.training-facebook-button:hover { background: #0f5bb5; transform: translateY(-2px); }

/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
  /* header becomes a simple stacked bar with a hamburger, mirroring the
     original's mobile menu (the desktop split menu is hidden) */
  .site-header { padding: 16px 0; }
  .row_menu { gap: 16px; }
  .center-logo { max-width: 160px; }
  .center-logo img { height: 38px; }

  .nav-toggle { display: flex; }
  .left-menu .et-menu, .right-menu .et-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--navy);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 8px 0 16px;
    z-index: 40;
  }
  .site-header.menu-open .left-menu .et-menu,
  .site-header.menu-open .right-menu .et-menu { display: flex; }
  .et_pb_menu .menu-item > a { display: block; padding: 12px 24px; }
  .et_pb_menu .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: rgba(0,0,0,0.2);
    max-height: 0;
    overflow: hidden;
    padding: 0;
  }
  .et_pb_menu .menu-item.open > .sub-menu { max-height: 500px; padding: 4px 0; }
  .et_pb_menu .sub-menu a { color: #d9e0ff; }
}

@media (max-width: 900px) {
  .hero .et_pb_text_0 .et_pb_text_inner h1 { white-space: normal; }
  .split, .split--reverse .split-media { grid-template-columns: 1fr; }
  .hero .et_pb_row_1 { grid-template-columns: 1fr; }
  .split--reverse .split-media { order: 0; }
  .feature-grid, .case-grid { grid-template-columns: 1fr; }
  .footer-menu { flex-direction: column; gap: 30px; }
  .footer-group, .footer-social { text-align: center; min-width: 0; }
  .training-links { justify-content: center; }
}
