/* TI Pharmacy Consultancy — pharmacy-services.org */
/* Palette: navy #1a3a5c | steel #2e6da4 | light-blue #e8f1fa | off-white #f7f6f3 | charcoal #1c2733 */

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

html { scroll-behavior: smooth; }

body {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 17px;
  line-height: 1.7;
  color: #1c2733;
  background: #f7f6f3;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: Georgia, serif;
  font-weight: normal;
  line-height: 1.25;
  color: #1a3a5c;
}
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); margin-bottom: .5rem; }
h3 { font-size: 1.15rem; margin-bottom: .4rem; }
p  { margin-bottom: 1rem; }
a  { color: #2e6da4; }
a:hover { color: #1a3a5c; }

/* ── Layout ── */
.container { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }
.section    { padding: 3.5rem 0; }
.section--alt { background: #fff; }
.section--dark { background: #1a3a5c; color: #e8f1fa; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: #bdd0e5; }

/* ── Nav ── */
.nav {
  background: #1a3a5c;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.nav__inner {
  display: flex; align-items: center;
  justify-content: space-between;
  height: 62px;
  max-width: 1080px; margin: 0 auto; padding: 0 1.25rem;
}
.nav__logo {
  font-family: Georgia, serif;
  font-size: 1.05rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: .01em;
}
.nav__logo span { color: #7eb5e0; }
.nav__links { display: flex; align-items: center; gap: 1.75rem; list-style: none; }
.nav__links a {
  color: #bdd0e5;
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-size: .88rem;
  letter-spacing: .02em;
  transition: color .15s;
}
.nav__links a:hover { color: #fff; }
.nav__links a.nav__cta {
  background: #2e6da4;
  color: #fff;
  padding: .45rem 1.1rem;
  border-radius: 4px;
  font-size: .85rem;
}
.nav__links a.nav__cta:hover { background: #245a8a; }

/* Mobile nav */
.nav__toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  color: #bdd0e5; font-size: 1.6rem; padding: .25rem;
}
@media (max-width: 700px) {
  .nav__toggle { display: block; }
  .nav__links {
    display: none; flex-direction: column; align-items: flex-start;
    gap: 0; background: #132d47;
    position: absolute; top: 62px; left: 0; right: 0;
    padding: 1rem 1.25rem 1.5rem;
  }
  .nav__links.open { display: flex; }
  .nav__links li { width: 100%; border-bottom: 1px solid #1f3d55; }
  .nav__links a { display: block; padding: .7rem 0; color: #bdd0e5; }
  .nav__links a.nav__cta {
    margin-top: .75rem; text-align: center;
    background: #2e6da4; border-radius: 4px; padding: .6rem;
  }
}

/* ── Hero ── */
.hero {
  background: #1a3a5c;
  padding: 4rem 0 3.5rem;
  border-bottom: 3px solid #2e6da4;
}
.hero__eyebrow {
  font-family: Arial, sans-serif;
  font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
  color: #7eb5e0; margin-bottom: .75rem;
}
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero__sub {
  font-size: 1.1rem; color: #bdd0e5;
  max-width: 600px; margin-bottom: 2rem;
}
.hero__actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ── Buttons ── */
.btn {
  display: inline-block; text-decoration: none;
  font-family: Arial, sans-serif; font-size: .9rem;
  padding: .65rem 1.5rem; border-radius: 4px;
  transition: background .15s, color .15s;
  border: 2px solid transparent; cursor: pointer;
}
.btn--primary { background: #2e6da4; color: #fff; border-color: #2e6da4; }
.btn--primary:hover { background: #245a8a; border-color: #245a8a; color: #fff; }
.btn--outline { background: transparent; color: #7eb5e0; border-color: #7eb5e0; }
.btn--outline:hover { background: #7eb5e0; color: #1a3a5c; }
.btn--white { background: #fff; color: #1a3a5c; border-color: #fff; }
.btn--white:hover { background: #e8f1fa; }

/* ── Cards ── */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 1.25rem; }
.card {
  background: #fff;
  border: 1px solid #d6e3ef;
  border-top: 3px solid #2e6da4;
  border-radius: 4px;
  padding: 1.5rem;
}
.card__icon { font-size: 1.6rem; margin-bottom: .75rem; }
.card h3 { color: #1a3a5c; margin-bottom: .5rem; }
.card p { font-size: .95rem; color: #3d5166; margin-bottom: 1rem; }
.card a { font-family: Arial, sans-serif; font-size: .85rem; font-weight: bold; color: #2e6da4; text-decoration: none; }
.card a:hover { text-decoration: underline; }

/* ── Two-col layout ── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 680px) { .two-col { grid-template-columns: 1fr; } }

/* ── Service detail page ── */
.page-hero {
  background: #1a3a5c;
  padding: 3rem 0 2.5rem;
  border-bottom: 3px solid #2e6da4;
}
.page-hero__eyebrow {
  font-family: Arial, sans-serif; font-size: .78rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: #7eb5e0; margin-bottom: .5rem;
}
.page-hero h1 { color: #fff; margin-bottom: .75rem; }
.page-hero p { color: #bdd0e5; font-size: 1.05rem; max-width: 640px; }

/* ── Breadcrumb ── */
.breadcrumb {
  font-family: Arial, sans-serif; font-size: .8rem;
  color: #7eb5e0; margin-bottom: 1rem;
}
.breadcrumb a { color: #7eb5e0; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 .4rem; }

/* ── Process steps ── */
.steps { counter-reset: step; display: flex; flex-direction: column; gap: 1.25rem; }
.step {
  display: flex; gap: 1.25rem; align-items: flex-start;
  background: #fff; border: 1px solid #d6e3ef;
  border-radius: 4px; padding: 1.25rem;
}
.step__num {
  counter-increment: step;
  min-width: 36px; height: 36px;
  background: #2e6da4; color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: Arial, sans-serif; font-size: .85rem; font-weight: bold;
  flex-shrink: 0;
}
.step h3 { margin-bottom: .25rem; }
.step p { margin-bottom: 0; font-size: .95rem; }

/* ── Disclaimer box ── */
.disclaimer {
  background: #fff8e6; border-left: 4px solid #c9960a;
  border-radius: 4px; padding: 1rem 1.25rem;
  font-family: Arial, sans-serif; font-size: .88rem;
  color: #5a4000; margin: 2rem 0;
}
.disclaimer strong { display: block; margin-bottom: .25rem; }

/* ── Wales badge ── */
.wales-badge {
  display: inline-block; background: #cc0000;
  color: #fff; font-family: Arial, sans-serif;
  font-size: .75rem; letter-spacing: .05em; text-transform: uppercase;
  padding: .2rem .7rem; border-radius: 3px; margin-bottom: 1rem;
}

/* ── Contact form ── */
.form { display: flex; flex-direction: column; gap: 1rem; }
.form label {
  font-family: Arial, sans-serif; font-size: .85rem;
  color: #1a3a5c; font-weight: bold; display: block; margin-bottom: .25rem;
}
.form input, .form select, .form textarea {
  width: 100%; padding: .65rem .85rem;
  border: 1px solid #b0c4d8; border-radius: 4px;
  font-family: Georgia, serif; font-size: .95rem;
  background: #fff; color: #1c2733;
  transition: border-color .15s;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: #2e6da4;
  box-shadow: 0 0 0 3px rgba(46,109,164,.15);
}
.form textarea { min-height: 130px; resize: vertical; }

/* ── Footer ── */
.footer { background: #132d47; color: #8aaec8; padding: 2.5rem 0; }
.footer__inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem; max-width: 1080px; margin: 0 auto; padding: 0 1.25rem;
}
.footer__brand { font-family: Georgia, serif; font-size: 1rem; color: #fff; margin-bottom: .5rem; }
.footer p { font-size: .85rem; line-height: 1.6; }
.footer h4 { color: #bdd0e5; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .75rem; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: .4rem; }
.footer ul a { color: #8aaec8; text-decoration: none; font-size: .85rem; }
.footer ul a:hover { color: #fff; }
.footer__bottom {
  border-top: 1px solid #1f3d55; margin-top: 2rem; padding-top: 1.25rem;
  text-align: center; font-size: .8rem;
}
@media (max-width: 680px) {
  .footer__inner { grid-template-columns: 1fr; }
}

/* ── Utility ── */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.tag {
  background: #e8f1fa; color: #1a3a5c;
  font-family: Arial, sans-serif; font-size: .78rem;
  padding: .25rem .75rem; border-radius: 20px;
  border: 1px solid #b5cfe8;
}

/* ── Cookie consent banner ── */
.cookie-banner {
  display: none;
  position: fixed; bottom: 1.5rem; left: 1.5rem; z-index: 9999;
  background: #1a3a5c;
  border: 1px solid #2e6da4;
  border-radius: 6px;
  padding: 1.1rem 1.25rem;
  max-width: 320px;
  box-shadow: 0 4px 18px rgba(0,0,0,.35);
  font-family: Arial, sans-serif;
}
.cookie-banner.visible { display: block; }
.cookie-banner p {
  font-size: .82rem; color: #bdd0e5;
  margin-bottom: .85rem; line-height: 1.5;
}
.cookie-banner a { color: #7eb5e0; }
.cookie-banner__btns { display: flex; gap: .6rem; }
.cookie-btn {
  flex: 1; padding: .45rem .5rem; border-radius: 4px;
  font-family: Arial, sans-serif; font-size: .8rem;
  font-weight: bold; cursor: pointer; border: none;
  transition: background .15s;
}
.cookie-btn--accept { background: #2e6da4; color: #fff; }
.cookie-btn--accept:hover { background: #245a8a; }
.cookie-btn--decline { background: transparent; color: #7eb5e0;
  border: 1px solid #2e6da4 !important; }
.cookie-btn--decline:hover { background: rgba(46,109,164,.15); }
@media (max-width: 400px) {
  .cookie-banner { left: .75rem; right: .75rem; max-width: none; bottom: .75rem; }
}

/* ── FAQ Accordion ── */
.faq { margin: 2.5rem 0; }
.faq__title {
  font-size: 1.5rem; font-weight: normal;
  color: #1a3a5c; margin-bottom: 1.25rem;
}
.faq__item {
  background: #fff;
  border: 1px solid #d6e3ef;
  border-radius: 4px;
  margin-bottom: .6rem;
  overflow: hidden;
}
.faq__question {
  width: 100%; text-align: left;
  background: none; border: none; cursor: pointer;
  padding: 1rem 1.25rem;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem;
  font-family: Georgia, serif; font-size: 1rem;
  font-weight: normal; color: #1a3a5c;
  transition: background .15s;
}
.faq__question:hover { background: #f0f5fa; }
.faq__question[aria-expanded="true"] {
  background: #e8f1fa;
  border-left: 3px solid #2e6da4;
}
.faq__icon {
  font-size: 1.3rem; font-weight: bold;
  color: #2e6da4; flex-shrink: 0;
  transition: transform .2s;
  line-height: 1;
}
.faq__question[aria-expanded="true"] .faq__icon { transform: rotate(45deg); }
.faq__answer {
  display: none;
  padding: 0 1.25rem 1rem;
  font-family: Arial, sans-serif;
  font-size: .92rem; color: #3d5166; line-height: 1.7;
}
.faq__answer p { margin-bottom: .6rem; }
.faq__answer p:last-child { margin-bottom: 0; }
.faq__question[aria-expanded="true"] + .faq__answer { display: block; }
