/* Videocounseling theme */
:root {
  --ink: #1f2d3a;
  --muted: #5a6b7a;
  --sea: #1f5f7a;
  --sea-dark: #164a60;
  --sea-deep: #0f2a38;
  --sand: #f5f1ea;
  --line: #e2ddd4;
  --white: #ffffff;
  --radius: 6px;
  --head: "Julius Sans One", Georgia, serif;
  --body: "Source Sans 3", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; }
a { color: var(--sea); }
a:hover { color: var(--sea-dark); }
h1, h2, h3, h4 { line-height: 1.25; color: var(--sea-dark); }
h1, h2 { font-family: var(--head); font-weight: 400; }
h2 { font-size: 30px; margin: 1.6em 0 .6em; }
h3 { font-size: 22px; margin: 1.4em 0 .5em; }
h4 { font-size: 19px; margin: 1.2em 0 .4em; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 100; background: var(--white); padding: 8px 12px; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--sea);
  color: var(--white) !important;
  padding: 12px 26px;
  border-radius: 4px;
  text-decoration: none !important;
  font-weight: 600;
  letter-spacing: .3px;
  border: 0;
  cursor: pointer;
}
.btn:hover { background: var(--sea-dark); }
.btn-light { background: var(--white); color: var(--sea) !important; }
.btn-light:hover { background: var(--sand); }
.btn-lg { padding: 15px 34px; font-size: 19px; }

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand {
  white-space: nowrap;
  font-family: var(--head);
  font-size: 23px; letter-spacing: 1px;
  color: var(--ink); text-decoration: none; line-height: 1.2;
}
.brand small { display: block; font-family: var(--body); font-size: 14px; letter-spacing: 0; color: var(--muted); }
.site-nav { display: flex; align-items: center; gap: 18px; }
.nav-menu, .sub-menu { list-style: none; margin: 0; padding: 0; }
.nav-menu { display: flex; gap: 4px; }
.nav-menu > li { position: relative; }
.nav-menu a { display: block; white-space: nowrap; padding: 10px 8px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; }
.nav-menu > li.active > a, .nav-menu a:hover { color: var(--sea); }
.sub-menu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 210px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,.08); padding: 6px 0;
}
.has-children:hover > .sub-menu, .has-children:focus-within > .sub-menu { display: block; }
.sub-menu a { font-weight: 400; padding: 8px 16px; }
.sub-menu li.active a { color: var(--sea); font-weight: 600; }
.nav-toggle, .nav-toggle-label { display: none; }

@media (max-width: 1180px) {
  .nav-toggle-label {
    display: block; width: 44px; height: 44px; position: relative; cursor: pointer;
  }
  .nav-toggle-label span, .nav-toggle-label span::before, .nav-toggle-label span::after {
    content: ""; position: absolute; left: 10px; width: 24px; height: 2px; background: var(--ink);
  }
  .nav-toggle-label span { top: 21px; }
  .nav-toggle-label span::before { top: -7px; left: 0; }
  .nav-toggle-label span::after { top: 7px; left: 0; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line); padding: 8px 20px 20px;
  }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .nav-menu { flex-direction: column; }
  .sub-menu { display: block; position: static; border: 0; box-shadow: none; padding: 0 0 0 14px; }
  .btn-nav { margin-top: 10px; text-align: center; }
}
.btn-nav { white-space: nowrap; padding: 10px 18px; }

/* Hero and banners */
.hero, .banner, .band {
  position: relative;
  background-color: var(--sea-dark);
  background-position: center; background-size: cover; background-repeat: no-repeat;
  color: var(--white); text-align: center;
}
.hero::before, .banner::before, .band::before {
  content: ""; position: absolute; inset: 0; background: rgba(15, 42, 56, .55);
}
.hero .wrap, .banner .wrap, .band .wrap { position: relative; }
.hero .wrap { padding-top: 120px; padding-bottom: 120px; }
.hero h1 { color: var(--white); font-size: clamp(34px, 6vw, 60px); margin: 0 0 16px; }
.hero .lead { font-size: 21px; max-width: 680px; margin: 0 auto 32px; }
.banner .wrap { padding-top: 90px; padding-bottom: 90px; }
.banner h1 { color: var(--white); font-size: clamp(30px, 5vw, 48px); margin: 0 0 18px; }
.banner blockquote { max-width: 760px; margin: 0 auto; font-size: 19px; font-style: italic; }
.banner blockquote p { margin: 0 0 8px; }
.banner cite { font-style: normal; opacity: .9; }
.title-band { background: var(--sand); border-bottom: 1px solid var(--line); }
.title-band .wrap { padding-top: 44px; padding-bottom: 36px; }
.title-band h1 { margin: 0; font-size: clamp(30px, 5vw, 44px); }
.crumb { margin: 0 0 6px; font-size: 15px; }
.crumb a { text-decoration: none; }
.band .wrap { padding-top: 90px; padding-bottom: 90px; }
.band p { font-size: clamp(21px, 3vw, 28px); max-width: 820px; margin: 0 auto; font-family: var(--head); }

/* Content */
.content { padding-top: 48px; padding-bottom: 64px; }
.prose { max-width: 820px; }
.prose > :first-child { margin-top: 0; }
.prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--sea); color: var(--muted); font-style: italic; }
.prose table { border-collapse: collapse; }
.post-date { color: var(--muted); font-size: 15px; margin: 0 0 12px; }
.back-link { margin-top: 40px; }

/* Cards */
.services { padding: 64px 0; }
.section-title { text-align: center; margin: 0 0 32px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 24px; margin: 32px 0; }
.card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: var(--ink);
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: 0 10px 28px rgba(0,0,0,.1); transform: translateY(-2px); color: var(--ink); }
.card img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--sand); }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; flex: 1; }
.card-title { font-family: var(--head); font-size: 21px; color: var(--sea-dark); }
.card-text { color: var(--muted); font-size: 16px; flex: 1; }
.card-link { color: var(--sea); font-weight: 600; font-size: 16px; text-decoration: none; }

.home-intro { background: var(--sand); padding: 56px 0; }
.home-intro .prose { max-width: 1100px; }

.focus-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 24px; }
.focus-list { background: var(--sand); border-radius: var(--radius); padding: 4px 24px 16px; }

.post-summary { border-bottom: 1px solid var(--line); padding: 8px 0 24px; margin-bottom: 16px; max-width: 820px; }
.post-summary h2 { margin: .5em 0 .2em; font-size: 26px; }
.post-summary h2 a { text-decoration: none; }

/* FAQ accordion */
details.faq { border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 12px; background: var(--white); }
details.faq summary { cursor: pointer; padding: 14px 18px; font-weight: 600; color: var(--sea-dark); list-style: none; position: relative; padding-right: 44px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; position: absolute; right: 18px; top: 10px; font-size: 24px; color: var(--sea); }
details.faq[open] summary::after { content: "\2212"; }
details.faq .faq-body { padding: 0 18px 12px; }

/* Testimonials */
.testimonial { background: var(--sand); border-left: 4px solid var(--sea); border-radius: var(--radius); padding: 16px 20px; margin: 0 0 16px; font-style: italic; }

/* Concierge Therapy blocks (migrated from the Joomla pages) */
.ct-plans { display: flex; gap: 20px; margin: 20px 0 30px; }
.ct-plan { flex: 1; min-width: 0; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius); position: relative; }
.ct-plan.ct-featured { border: 2px solid var(--sea); }
.ct-badge { position: absolute; top: -11px; left: 20px; background: var(--sea); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 12px; border-radius: 10px; text-transform: uppercase; letter-spacing: .5px; }
.ct-plan h4 { margin-top: 4px; }
.ct-fees { width: 100%; border-collapse: collapse; margin: 10px 0; }
.ct-fees td { padding: 6px 0; border-bottom: 1px solid #eee; }
.ct-fees td:last-child { text-align: right; font-weight: 700; }
.ct-note { font-size: .9em; font-style: italic; margin-top: 10px; opacity: .85; }
.ct-shared { padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 30px; background: var(--sand); }
.ct-shared h4 { margin-top: 0; }
.ct-shared-cols, .ct-cols { display: flex; gap: 24px; }
.ct-shared-cols ul, .ct-cols > div { flex: 1; min-width: 0; }
.ct-voluntary { font-size: .9em; font-style: italic; text-align: center; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.ct-buttons { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; margin: 24px 0; }
.btn-outline { background: transparent; color: var(--sea) !important; border: 2px solid var(--sea); padding: 10px 24px; }
.btn-outline:hover { background: var(--sea); color: var(--white) !important; }
@media (max-width: 700px) {
  .ct-plans, .ct-shared-cols, .ct-cols { flex-direction: column; gap: 0; }
  .ct-plans { gap: 24px; }
}

/* Contact page and forms */
.contact-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 48px; }
.contact-aside { background: var(--sand); border-radius: var(--radius); padding: 8px 24px 20px; align-self: start; }
.contact-aside h3:first-child { margin-top: 16px; }
.contact-aside .note { font-size: 15px; color: var(--muted); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-form .form-field { margin-bottom: 18px; }
.contact-form label { display: block; font-weight: 600; margin-bottom: 6px; }
.contact-form input[type=text], .contact-form input[type=email], .contact-form input[type=tel],
.contact-form select, .contact-form textarea {
  width: 100%; padding: 11px 12px; font: inherit; font-size: 17px;
  border: 1px solid #c9c3b8; border-radius: 4px; background: var(--white); color: var(--ink);
}
.contact-form textarea { min-height: 120px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--sea); outline-offset: 1px; border-color: var(--sea); }
.contact-form .required { color: #a33; }
.contact-form .form-description, .contact-form .help { font-size: 15px; color: var(--muted); }
.contact-form button[type=submit], .contact-form .button { background: var(--sea); color: var(--white); border: 0; border-radius: 4px; padding: 13px 30px; font: inherit; font-weight: 600; cursor: pointer; }
.contact-form button[type=submit]:hover, .contact-form .button:hover { background: var(--sea-dark); }
.form-honeybear { display: none !important; }
.notices, .alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; }
.notices.green, .alert-success { background: #e6f2ea; color: #1d5b33; }
.notices.red, .alert-danger { background: #f8e6e6; color: #7a1f1f; }

/* CTA and footer */
.cta { background: var(--sea); color: var(--white); text-align: center; padding: 56px 0; }
.cta h2 { color: var(--white); margin: 0 0 10px; }
.cta p { margin: 0 0 24px; }
.site-footer { background: var(--ink); color: #c9d3dc; font-size: 15px; padding: 44px 0 20px; }
.site-footer a { color: var(--white); }
.site-footer strong { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 16px; }
.footer-bottom p { margin: 0; font-size: 14px; }

/* Header gets a wider container so the full menu fits on one line */
.site-header .wrap { max-width: 1300px; }
