/* ==============================
   Cassiopeia layout reset
   Porn & Sex Addiction Therapy
   ============================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Old+Standard+TT:ital,wght@0,400;0,700;1,400&display=swap');

body {
  background: #fafafa;
  color: #666;
  font-family: "Montserrat", sans-serif;
}

h1,h2,h3,h4,h5 {
  font-family: "Old Standard TT", serif;
  font-weight: 400;
}

h1 {
  font-size: 26px;
  color: #1e8ece !important;
}

.site-grid,
.container-header,
.container-component,
.container-footer {
  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;
  background: #fff;
}

.container-header {
  background: #fff;
  box-shadow: none;
  border: 0;
  overflow: visible;
}

/* TOPBAR */

.container-header .container-topbar {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 2rem 3rem;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.site-topbar-brand {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
  width: 100%;
}

.site-topbar-brand__logo {
  text-align: left;
}

.site-topbar-brand__logo img {
  max-width: 478px;
  width: 100%;
  height: auto;
  display: block;
}

.site-topbar-brand__contact {
  text-align: right;
}

.site-topbar-brand__contact h3,
.site-topbar-brand__contact p {
  margin: 0 0 .4rem;
}

.site-topbar-brand__contact a {
  color: #2f80ed;
  text-decoration: none;
}

/* NAVIGATION */

.container-header .container-nav {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0;
  background: #fff;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  overflow: visible;
  position: relative;
  z-index: 1000;
  box-sizing: border-box;
}

.container-header .mod-menu {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: stretch;
  gap: 0;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 1rem;
  list-style: none;
  overflow: visible;
  position: relative;
  box-sizing: border-box;
}

.container-header .mod-menu > li {
  margin: 0;
  flex: 0 1 auto;
  position: relative;
  list-style: none;
  min-width: 0;
}

.container-header .mod-menu a,
.container-header .mod-menu span,
.container-header .mod-menu button,
.container-header .mod-menu .mod-menu__heading {
  font-family: "Old Standard TT", serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.container-header .mod-menu > li > a,
.container-header .mod-menu > li > span,
.container-header .mod-menu > li > button,
.container-header .mod-menu > li > .mod-menu__heading {
  display: flex;
  align-items: center;
  gap: .35rem;
  color: #555;
  padding: 1.2rem .48rem;
  border-top: 3px solid transparent;
  white-space: nowrap;
  background: transparent;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  font-size: 16px;
  line-height: 1.2;
  cursor: pointer;
}

.container-header .mod-menu button {
  appearance: none;
  border: 0;
}

/* Chevron fix: do NOT hide the parent button text */
.container-header .mod-menu button[aria-expanded] {
  display: flex;
}

.container-header .mod-menu button[aria-expanded] .icon-chevron-down,
.container-header .mod-menu button[aria-expanded] svg {
  display: none;
}

.container-header .mod-menu button[aria-expanded]::after {
  content: "▾";
  font-size: 11px;
  margin-left: .35rem;
  line-height: 1;
}

.container-header .mod-menu > li.active > a,
.container-header .mod-menu > li.current > a,
.container-header .mod-menu > li > a:hover,
.container-header .mod-menu > li > span:hover,
.container-header .mod-menu > li > button:hover {
  color: #245ca8;
  background: #f7f7f7;
  border-top-color: #2b78d6;
}

/* DROPDOWNS */

.container-header .mod-menu .mod-menu__sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 9999;
  background: #fff;
  min-width: 18rem;
  margin: 0;
  padding: 0;
  border: 1px solid #eee;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
  list-style: none;
}

.container-header .mod-menu > li:hover > .mod-menu__sub,
.container-header .mod-menu > li:focus-within > .mod-menu__sub {
  display: block;
}

.container-header .mod-menu .mod-menu__sub li {
  margin: 0;
  list-style: none;
}

.container-header .mod-menu .mod-menu__sub a,
.container-header .mod-menu .mod-menu__sub span,
.container-header .mod-menu .mod-menu__sub button {
  display: block;
  width: 100%;
  color: #555;
  padding: .8rem 1rem;
  white-space: nowrap;
  font-family: "Old Standard TT", serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .03em;
  background: #fff;
  text-align: left;
}

.container-header .mod-menu .mod-menu__sub a:hover,
.container-header .mod-menu .mod-menu__sub span:hover,
.container-header .mod-menu .mod-menu__sub button:hover {
  color: #245ca8;
  background: #f7f7f7;
}

/* MAIN CONTENT */

.site-grid {
  padding: 0;
}

.container-component {
  padding: 2rem 3rem;
}

.intro-split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: center;
}

.intro-split__image img {
  width: 100%;
  height: auto;
  border: 8px solid #fff;
  outline: 1px solid #ddd;
}

/* BUTTONS */

.btn,
.button,
.readmore a,
a.btn-primary {
  background: #245ca8;
  color: #fff;
  padding: .85rem 1.4rem;
  display: inline-block;
  text-decoration: none;
  border: 0;
}

.btn:hover,
.button:hover,
.readmore a:hover,
a.btn-primary:hover {
  background: #1d4f92;
  color: #fff;
}

/* CARDS */

.cards,
.blog-items,
.category-module {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.card,
.blog-item,
.category-module li {
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
  padding: 1.2rem;
  list-style: none;
}

.card img,
.blog-item img,
.category-module img {
  width: 100%;
  height: auto;
  margin-bottom: 1rem;
}

/* HOME CARD GRID */

.home-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.home-card {
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
  padding: 1.5rem;
}

.home-card__image {
  width: 100%;
  height: 180px;
  background: #ddd;
  margin-bottom: 1rem;
}

.home-card h2 {
  margin: 0 0 1rem;
}

/* FOOTER */

.container-footer {
  background: #fff;
  color: #666;
  padding: 2rem 3rem;
  box-shadow: none;
}

.container-footer a {
  color: #2f80ed;
}

.accreditations {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin: 2rem 0;
}

.accreditations img {
  max-height: 95px;
  width: auto;
}

#redim-cookiehint,
.cookieconsent,
.cc-window {
  background: #68708b !important;
  color: #fff !important;
}

/* MOBILE */

@media (max-width: 900px) {
  .container-header .container-topbar {
    padding: 1.5rem;
  }

  .site-topbar-brand {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .site-topbar-brand__logo,
  .site-topbar-brand__contact {
    text-align: center;
  }

  .site-topbar-brand__logo img {
    margin: 0 auto;
  }

  .container-header .container-nav {
    padding: 0;
  }

  .container-header .mod-menu {
    flex-direction: column;
    overflow: visible;
    padding: 0;
  }

  .container-header .mod-menu > li {
    width: 100%;
  }

  .container-header .mod-menu > li > a,
  .container-header .mod-menu > li > span,
  .container-header .mod-menu > li > button {
    padding: 1rem 1.5rem;
    font-size: 18px;
  }

  .container-header .mod-menu .mod-menu__sub {
    position: static;
    display: block;
    box-shadow: none;
    border: 0;
    min-width: 0;
  }

  .container-component {
    padding: 1.5rem;
  }

  .intro-split,
  .cards,
  .blog-items,
  .category-module,
  .home-card-grid {
    grid-template-columns: 1fr;
  }

  .accreditations {
    flex-direction: column;
  }
}