/* Real Talk Counselling. Colours and layout match the old WordPress (Total theme) site. */
@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("/assets/fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 400; font-style: italic; font-display: swap; src: url("/assets/fonts/poppins-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url("/assets/fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("/assets/fonts/poppins-latin-600-normal.woff2") format("woff2"); }

:root {
  --purple: #52426f;     /* accent */
  --purple-2: #3f3257;   /* hover */
  --text: #555;
  --heading: #222;
  --rule: #e6e6e6;
  --max: 1100px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Arial, sans-serif; font-size: 16px; line-height: 1.7; color: var(--text); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); }
a:hover { color: var(--purple-2); }
p { margin: 0 0 1em; }
h1, h2, h3 { color: var(--heading); line-height: 1.25; font-weight: 600; margin: 0 0 .6em; }
.container { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.center { text-align: center; }
.skip, .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.skip:focus { left: 10px; top: 10px; width: auto; height: auto; z-index: 100; background: #fff; color: #000; padding: 8px 12px; }
.icon { width: 1em; height: 1em; flex: none; }
[id] { scroll-margin-top: 10px; }

/* Header and menu */
.site-header { background: #fff; position: relative; z-index: 5; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; padding-block: 15px; }
.logo img { width: 110px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px 30px; }
.nav a { display: block; padding: 6px 0; font-size: 17px; color: #555; text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--purple); }
@media (max-width: 760px) {
  .logo img { width: 80px; }
  .nav { flex-basis: 100%; }
  .nav ul { flex-direction: column; gap: 0; border-top: 1px solid var(--rule); margin-bottom: -15px; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .nav li:last-child a { border-bottom: 0; }
}
.menu-toggle { color: var(--heading); }

/* Buttons */
.btn { display: inline-block; background: var(--purple); color: #fff; border: 0; border-radius: 3px; font: inherit; padding: 8px 18px; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--purple-2); color: #fff; }
.btn[disabled] { opacity: .7; cursor: wait; }

/* Headings with the purple underline */
.line { border-bottom: 1px solid var(--rule); font-size: clamp(1.8rem, 3.6vw, 2.4rem); margin-bottom: 24px; }
.line span { display: inline-block; border-bottom: 2px solid var(--purple); padding-bottom: 6px; margin-bottom: -1px; }

/* Home */
.intro { padding-block: 10px 40px; }
.intro .container { display: grid; grid-template-columns: 5fr 7fr; gap: 30px 30px; }
.intro h1 { font-size: clamp(2rem, 4vw, 2.6rem); margin-bottom: 20px; }
.intro h1 span { display: block; font-size: 1.15rem; font-weight: 600; margin-top: 6px; }
.intro img { width: 100%; }
.intro .quote { display: flex; gap: 10px; color: var(--heading); font-size: 1.3rem; font-weight: 600; line-height: 1.4; margin-bottom: 1.2em; }
.quote .icon { margin-top: 4px; }
.intro p { font-size: 15px; }
.intro h2 { font-size: 1.15rem; margin-top: 1.4em; }
.intro ul { font-size: 15px; padding-left: 1.2em; }
@media (max-width: 760px) { .intro .container { grid-template-columns: 1fr; } }
.section { padding-block: 30px; }
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.about p { font-size: 15px; }
.about img { margin-top: 20px; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } .about img { max-width: 420px; } }
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 10px; }
.service { display: flex; flex-direction: column; align-items: flex-start; }
.service h3 { font-size: 1.35rem; font-weight: 500; border-bottom: 1px solid var(--rule); align-self: stretch; padding-bottom: 4px; }
.service p { flex: 1; font-size: 15px; }
@media (max-width: 760px) { .services { grid-template-columns: 1fr; } }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 760px) { .contact { grid-template-columns: 1fr; } }
.mail a { display: inline-flex; align-items: center; gap: 12px; font-size: 1.2rem; text-decoration: none; overflow-wrap: anywhere; }
.bacp { width: 240px; margin: 20px 0; }
.directory { width: 220px; }
label { display: block; margin-bottom: 12px; font-size: 15px; }
input[type="text"], input[type="email"], textarea {
  display: block; width: 100%; margin-top: 4px; font: inherit; font-size: 16px; color: #333;
  background: #fff; border: 1px solid #ddd; border-radius: 3px; padding: 7px 10px;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, textarea:focus { outline: 2px solid var(--purple); outline-offset: 0; border-color: var(--purple); }
.enquiry { border: 0; margin: 0 0 12px; padding: 0; }
.enquiry legend { padding: 0; margin-bottom: 4px; font-size: 15px; }
label.check { display: inline-flex; align-items: center; gap: 8px; margin: 0 20px 4px 10px; }
.cf-turnstile { margin: 6px 0 10px; min-height: 65px; }
.notice { padding: 12px 16px; border-radius: 3px; margin: 16px 0 0; color: #fff; }
.notice.ok { background: var(--purple); }
.notice.err { background: #b3261e; }

/* Inner pages */
.page { padding-block: 10px 60px; }
.split { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; align-items: start; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: #222; color: #aaa; font-size: 14px; padding-block: 18px; }
.site-footer p { margin: 0; }
.site-footer a { color: #ddd; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* Mobile menu: a hamburger button opens the menu (site.js). Without JavaScript the menu just shows. */
.menu-toggle { display: none; }
@media (max-width: 760px) {
  .js .menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 0; background: none; border: 0; cursor: pointer; color: inherit; }
  .menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 26px; height: 3px; border-radius: 2px; background: currentColor; position: relative; transition: transform .2s, background .2s; }
  .menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
  .menu-toggle span::before { top: -8px; } .menu-toggle span::after { top: 8px; }
  .menu-toggle[aria-expanded="true"] span { background: transparent; }
  .menu-toggle[aria-expanded="true"] span::before { transform: translateY(8px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span::after { transform: translateY(-8px) rotate(-45deg); }
  .js #menu:not(.open) { display: none; }
}
