/* Counselling with Adam. Colours and layout match the old WordPress (Total theme) site. */
@font-face { font-family: "Playfair Display"; font-weight: 400; font-display: swap; src: url("/assets/fonts/playfair-display-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-weight: 500; font-display: swap; src: url("/assets/fonts/playfair-display-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-weight: 500; font-style: italic; font-display: swap; src: url("/assets/fonts/playfair-display-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-weight: 700; font-display: swap; src: url("/assets/fonts/playfair-display-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Gloock"; font-weight: 400; font-display: swap; src: url("/assets/fonts/gloock-latin-400-normal.woff2") format("woff2"); }

:root {
  --teal: #31545d;       /* accent */
  --teal-2: #24414a;     /* hover */
  --text: #414141;
  --heading: #222;
  --rule: #e6e6e6;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: "Playfair Display", Georgia, "Times New Roman", serif; font-weight: 500; font-size: 18px; line-height: 1.65; color: var(--text); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
a:hover { color: var(--teal-2); }
p { margin: 0 0 1em; }
h1, h2, h3 { color: var(--heading); line-height: 1.3; font-weight: 700; 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; }
section[id], [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: 18px; }
.logo img { width: 300px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px 30px; }
.nav a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; font-family: "Gloock", Georgia, serif; font-size: 18px; color: #555; text-decoration: none; border-bottom: 2px solid transparent; }
.nav a .icon { width: 15px; height: 15px; }
.nav a:hover { color: var(--teal); }
.nav a[aria-current="page"] { color: var(--teal); border-bottom-color: var(--teal); }
@media (max-width: 960px) {
  .logo img { width: 230px; }
  .nav { flex-basis: 100%; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; border-top: 1px solid var(--rule); margin-bottom: -18px; }
  .nav a { display: flex; padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .nav a[aria-current="page"] { border-bottom-color: var(--rule); }
  .nav li:last-child a { border-bottom: 0; }
}
.menu-toggle { color: var(--teal); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--teal); color: #fff; border: 0; border-radius: 3px; font: inherit; font-size: 17px; padding: 9px 20px; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--teal-2); color: #fff; }
.btn-light { background: #5f8690; padding: 11px 22px; }
.btn-light:hover { background: #6f97a1; }
.btn[disabled] { opacity: .7; cursor: wait; }

/* Headings with the teal underline */
.line { border-bottom: 1px solid var(--rule); font-size: clamp(1.6rem, 3.2vw, 2.1rem); margin-bottom: 24px; }
.line span { display: inline-block; border-bottom: 2px solid var(--teal); padding-bottom: 4px; margin-bottom: -1px; }

/* Home */
.hero { background: var(--teal); color: #fff; padding-block: 30px 50px; }
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 1.75rem); }
.hero p { font-size: 17px; }
.hero figure { margin: 0; }
.hero img { width: 100%; border-radius: 16px; }
.hero figcaption { text-align: center; font-weight: 700; font-size: 1.1rem; margin-top: 10px; }
@media (max-width: 800px) { .hero .container { grid-template-columns: 1fr; gap: 30px; } .hero figure { max-width: 420px; margin-inline: auto; } }
.section { padding-block: 50px; }
.dark { background: var(--teal); color: #fff; }
.dark h2 { color: #fff; }
.big { font-size: clamp(1.8rem, 3.2vw, 2.2rem); }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { display: flex; gap: 10px; align-items: baseline; margin-bottom: 4px; }
.ticks .icon { width: 14px; height: 14px; color: var(--heading); position: relative; top: 2px; }
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; margin-top: 30px; }
.blob { width: 100%; border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
@media (max-width: 800px) { .about { grid-template-columns: 1fr; } .blob { max-width: 380px; margin-inline: auto; } }
.fees { margin: 0 0 40px; padding-left: 1.2em; }
.fees ul { padding-left: 1.2em; list-style: circle; }
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.service { display: flex; flex-direction: column; align-items: flex-start; }
.service h3 { font-size: 1.45rem; border-bottom: 1px solid var(--rule); align-self: stretch; padding-bottom: 6px; }
.service p { flex: 1; font-size: 17px; }
@media (max-width: 800px) { .services { grid-template-columns: 1fr; } }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 800px) { .contact { grid-template-columns: 1fr; } .contact-side { order: 2; } }
.map { display: block; width: 100%; height: 350px; border: 0; margin-bottom: 24px; }
.bacp { width: 260px; margin-bottom: 20px; }
.directory { width: 220px; }
.contact-details { list-style: none; margin: 0 0 24px; padding: 0; font-size: 1.2rem; }
.contact-details a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; overflow-wrap: anywhere; }
.contact-details .icon { width: 18px; height: 18px; }
label { display: block; margin-bottom: 12px; font-size: 16px; }
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: 8px 10px;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, textarea:focus { outline: 2px solid var(--teal); outline-offset: 0; border-color: var(--teal); }
.enquiry { border: 0; margin: 0 0 12px; padding: 0; }
.enquiry legend { padding: 0; margin-bottom: 4px; font-size: 16px; }
label.check { display: inline-flex; align-items: center; gap: 8px; margin: 0 20px 4px 12px; font-size: 16px; }
.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(--teal); }
.notice.err { background: #b3261e; }

/* Inner pages and blog */
.page { padding-block: 30px 60px; }
.prose { max-width: 820px; }
.prose h2 { font-size: 1.35rem; margin-top: 1.5em; }
.prose h3 { font-size: 1.15rem; margin-top: 1.2em; }
.prose li { margin-bottom: 6px; }
.post h1 { font-size: clamp(1.6rem, 3.2vw, 2rem); }
.meta { color: #777; font-size: 15px; }
.post-nav { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid var(--rule); padding-top: 24px; margin-top: 40px; }
.post-card { border-bottom: 1px solid var(--rule); padding-bottom: 30px; margin-bottom: 30px; }
.post-card h2 { font-size: clamp(1.4rem, 2.8vw, 1.8rem); margin-bottom: .3em; }
.post-card h2 a { color: var(--heading); text-decoration: none; }
.post-card h2 a:hover { color: var(--teal); }

/* Footer */
.site-footer { background: #222; color: #aaa; font-size: 15px; padding-block: 18px; }
.site-footer p { margin: 0; }
.site-footer a { color: #fff; 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: 960px) {
  .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; }
}
