/* Polaris Psychiatry - site styles
   Plain CSS. No external requests: fonts and images are served from this site.
   Colours and type are taken from the previous WordPress (Elementor) design. */

/* ---------- typefaces (self-hosted, SIL Open Font License) ---------- */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/poppins-300.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-700.woff2") format("woff2"); }
@font-face { font-family: "PT Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ptserif-400.woff2") format("woff2"); }
@font-face { font-family: "PT Serif"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/ptserif-700.woff2") format("woff2"); }

/* ---------- colours (edit here to change them everywhere) ---------- */
:root {
  --navy: #364f6b;       /* headings, body text, buttons */
  --navy-2: #273a50;     /* welcome band (bottom) */
  --deep: #17293f;       /* header and footer (top) */
  --deep-2: #273c55;     /* header and footer (bottom) */
  --gold: #cbb26b;       /* rules, active menu item, links in the dark areas */
  --gold-text: #8f7633;  /* gold dark enough to read on white */
  --mist: #ebebeb;       /* light page background (top) */
  --mist-2: #f9fcff;     /* light page background (bottom) */
  --white: #ffffff;
  --serif: "PT Serif", Georgia, "Times New Roman", serif;
  --sans: "Poppins", Arial, Helvetica, sans-serif;
  --wrap: 1180px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--navy); font-family: var(--sans); font-weight: 400; font-size: 16px; line-height: 1.6; letter-spacing: .5px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover, a:focus-visible { color: var(--gold-text); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; color: var(--navy); }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--white); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.serif-title { font-family: var(--serif); font-weight: 700; line-height: 1.1; color: var(--navy); }
.rule::after { content: ""; display: block; width: 180px; max-width: 60%; height: 3px; background: var(--gold); margin-top: 14px; }

/* ---------- buttons ---------- */
.btn { display: inline-block; font-family: var(--sans); font-weight: 600; font-size: 18px; letter-spacing: 1px; text-transform: uppercase; text-decoration: none; border-radius: 40px; padding: 10px 32px; background: var(--navy); color: var(--white); line-height: 1.5; transition: background .2s, color .2s; }
.btn:hover, .btn:focus-visible { background: var(--deep); color: var(--white); }
.btn-light { background: #f1f1f1; color: var(--deep); }
.btn-light:hover, .btn-light:focus-visible { background: var(--gold); color: var(--deep); }

/* ---------- header ---------- */
.site-header { background: linear-gradient(180deg, var(--deep) 0%, var(--deep-2) 100%); position: relative; z-index: 20; }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 24px; max-width: 1440px; margin: 0 auto; }
.logo img { width: 370px; }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-button { display: none; cursor: pointer; padding: 10px; color: var(--white); }
.nav-button svg { width: 28px; height: 28px; display: block; }
.menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.menu a { display: block; padding: 10px 20px; color: var(--white); font-weight: 500; font-size: 18px; letter-spacing: 2px; text-transform: uppercase; text-decoration: none; border-top: 3px solid transparent; }
.menu a:hover, .menu a:focus-visible { color: var(--gold); }
.menu a[aria-current="page"] { color: var(--gold); border-top-color: var(--gold); }
.menu .menu-cta a { margin-left: 30px; background: #f1f1f1; color: var(--deep); border: 0; border-radius: 40px; padding: 6px 20px; font-weight: 600; font-size: 17px; letter-spacing: 1.5px; }
.menu .menu-cta a:hover, .menu .menu-cta a:focus-visible { background: var(--gold); color: var(--deep); }
@media (max-width: 1100px) { .logo img { width: 280px; } .menu a { padding: 10px 12px; font-size: 16px; } .menu .menu-cta a { margin-left: 12px; } }
@media (max-width: 900px) {
  .nav-button { display: block; }
  .logo img { width: 230px; }
  .menu { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--deep-2); padding: 8px 0 18px; box-shadow: 0 10px 24px rgba(0,0,0,.2); }
  .menu a { padding: 12px 24px; border-top: 0; }
  .menu a[aria-current="page"] { border-left: 3px solid var(--gold); }
  .menu .menu-cta a { margin: 10px 24px 0; text-align: center; }
  .nav-toggle:checked ~ .menu { display: flex; }
  .nav-toggle:focus-visible ~ .nav-button { outline: 2px solid var(--gold); }
}

/* ---------- home: hero ---------- */
.hero { min-height: 545px; background: #e9eef3 url("../images/hero-home.jpg") 30% center / cover no-repeat; display: flex; align-items: center; }
.hero .wrap { width: 100%; display: flex; justify-content: flex-end; }
.hero-text { text-align: right; max-width: 560px; }
.hero h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(36px, 3.9vw, 56px); line-height: 1.05; color: var(--navy); }
.hero p { margin: 22px 0 30px; font-weight: 500; font-size: 18px; }
.hero .btn { font-size: 22px; padding: 10px 32px; }
@media (max-width: 760px) {
  .hero { min-height: 460px; background-position: 22% center; align-items: flex-end; }
  .hero .wrap { justify-content: center; }
  .hero-text { text-align: center; background: rgba(249, 252, 255, .86); border-radius: 12px; padding: 22px 20px; margin-bottom: 26px; }
}

/* ---------- home: welcome band ---------- */
.welcome { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%); color: var(--white); padding: 120px 0 200px; }
.welcome .grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; }
.welcome h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(40px, 4.4vw, 62px); line-height: 1.1; color: var(--white); margin-bottom: 30px; }
.welcome p { font-size: 17px; letter-spacing: 1px; line-height: 1.6; margin-bottom: 0; }
.welcome .btn { margin-top: 36px; }
.welcome img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 860px) { .welcome { padding: 70px 0 140px; } .welcome .grid { grid-template-columns: 1fr; } }

/* wave shapes between bands (copied from the previous design) */
.wave { position: relative; overflow: hidden; }
.wave > svg.shape { position: absolute; top: -1px; left: 50%; transform: translateX(-50%); display: block; pointer-events: none; }
.wave-navy > svg.shape { width: calc(276% + 1.3px); height: 241px; }
.wave-white > svg.shape { width: calc(300% + 1.3px); height: 165px; }
.wave-navy > svg.shape path { fill: var(--navy-2); }
.wave-white > svg.shape path { fill: var(--white); }
@media (max-width: 760px) { .wave-navy > svg.shape { height: 79px; } .wave-white > svg.shape { height: 89px; } }

/* ---------- home: what sets me apart ---------- */
.apart { background: var(--white); padding: 170px 0 140px; }
.apart h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(34px, 3.3vw, 48px); line-height: 1.05; max-width: 360px; }
.apart .intro { max-width: 700px; margin-top: 34px; letter-spacing: 1px; font-size: 17px; }
.apart .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 70px; }
.apart h3 { font-weight: 700; font-size: 28px; line-height: 1.25; margin-bottom: 18px; }
.apart h3::before { content: ""; display: block; width: 200px; max-width: 70%; height: 3px; background: var(--gold); margin-bottom: 26px; }
.apart .cols p { font-size: 17px; letter-spacing: 1px; line-height: 1.6; }
@media (max-width: 860px) { .apart { padding: 110px 0 90px; } .apart .cols { grid-template-columns: 1fr; gap: 30px; } }

/* ---------- home: services offered ---------- */
.offered { background: linear-gradient(176deg, var(--mist) 0%, var(--mist-2) 62%); padding: 160px 0 110px; }
.offered .inner { max-width: 1000px; margin: 0 auto; padding: 0 24px; }
.offered h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(34px, 3vw, 44px); line-height: 1.1; }
.offered .list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 60px; margin-top: 60px; list-style: none; padding: 0; }
.offered li { display: flex; align-items: center; gap: 22px; }
.offered li img { width: 64px; height: 64px; flex: none; }
.offered li span { font-weight: 600; font-size: 24px; line-height: 1.25; }
.offered li a { text-decoration: none; }
.offered li a:hover, .offered li a:focus-visible { text-decoration: underline; }
.offered h3.soon { font-family: var(--serif); font-weight: 700; font-size: clamp(30px, 2.6vw, 40px); margin-top: 70px; }
.offered .list.soon-list { margin-top: 36px; }
@media (max-width: 760px) { .offered { padding: 110px 0 80px; } .offered .list { grid-template-columns: 1fr; gap: 26px; } .offered li span { font-size: 20px; } }

/* ---------- inner pages ---------- */
.page { background: linear-gradient(176deg, var(--mist) 0%, var(--mist-2) 62%); padding: 90px 0 110px; }
.page h1.page-title { font-family: var(--serif); font-weight: 700; font-size: clamp(38px, 4vw, 56px); line-height: 1.1; }

/* about */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.about-grid .kicker { font-family: var(--sans); font-weight: 600; font-size: 28px; letter-spacing: 6px; text-transform: uppercase; color: var(--navy); margin-bottom: 4px; }
.about-grid h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(42px, 5vw, 72px); line-height: 1.05; }
.about-grid h1::after { content: ""; display: block; width: 280px; max-width: 70%; height: 3px; background: var(--gold); margin: 34px 0 40px; }
.about-grid p { font-size: 17px; letter-spacing: .5px; line-height: 1.6; }
.about-grid img { width: 100%; aspect-ratio: 445 / 467; object-fit: cover; margin-top: 26px; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; gap: 20px; } .about-grid img { max-width: 445px; margin: 0 auto; order: -1; } }

/* services */
.svc { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-bottom: 60px; }
.svc:last-child { margin-bottom: 0; }
.svc h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(32px, 3vw, 42px); line-height: 1.1; scroll-margin-top: 20px; }
.svc h2::after { content: ""; display: block; width: 260px; max-width: 70%; height: 3px; background: var(--gold); margin: 14px 0 28px; }
.svc p { font-size: 17px; line-height: 1.55; letter-spacing: .3px; }
.svc img { width: 100%; aspect-ratio: 1.06; object-fit: cover; }
.svc.flip .svc-text { order: 2; }
@media (max-width: 760px) { .svc { grid-template-columns: 1fr; gap: 18px; } .svc.flip .svc-text { order: 0; } .svc img { aspect-ratio: 3 / 2; } }

/* contact */
.contact .lede { font-size: 17px; letter-spacing: .3px; margin-top: 22px; }
.contact-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 40px; }
.contact-cols h2 { font-family: var(--serif); font-weight: 700; font-size: 26px; }
.contact-cols h2::after { content: ""; display: block; width: 150px; height: 3px; background: var(--gold); margin: 6px 0 18px; }
.contact-cols p { font-size: 16px; line-height: 1.7; }
@media (max-width: 760px) { .contact-cols { grid-template-columns: 1fr; gap: 24px; } }

/* blog list */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.post-card { background: var(--white); box-shadow: 0 0 10px rgba(0,0,0,.12); display: flex; flex-direction: column; }
.post-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.post-card .body { padding: 30px 30px 20px; flex: 1; display: flex; flex-direction: column; }
.post-card h2 { font-family: var(--serif); font-weight: 700; font-size: 21px; line-height: 1.2; }
.post-card h2 a { text-decoration: none; }
.post-card p { margin-top: 22px; font-size: 14px; line-height: 1.6; }
.post-card .more { margin-top: auto; padding-top: 16px; font-weight: 600; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--gold-text); text-decoration: none; }
.post-card .meta { border-top: 1px solid #eaeaea; padding: 14px 30px; font-size: 12px; color: #6d7a88; }
@media (max-width: 960px) { .posts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .posts { grid-template-columns: 1fr; } }

/* single post */
.article { background: var(--white); padding: 80px 0 100px; }
.article .inner { max-width: 840px; margin: 0 auto; padding: 0 24px; }
.article h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(32px, 3.8vw, 52px); line-height: 1.15; text-align: center; }
.article .meta { text-align: center; font-size: 13px; color: #6d7a88; margin: 18px 0 50px; }
.article .feature { width: 100%; margin-bottom: 40px; }
.article p, .article li { font-size: 16px; line-height: 1.6; letter-spacing: .3px; }
.article h2 { font-family: var(--sans); font-weight: 500; font-size: 24px; line-height: 1.3; margin: 46px 0 16px; }
.article ul { padding-left: 1.2em; margin: 0 0 1em; }
.article li { margin-bottom: .3em; }
.article .note { font-size: 13px; color: #5d6976; border-top: 1px solid #eaeaea; padding-top: 18px; margin-top: 40px; }
.related { margin-top: 50px; }
.related h2 { font-family: var(--serif); font-weight: 700; font-size: 28px; margin: 0 0 16px; }
.related a { font-weight: 500; }

/* privacy notice and 404 */
.prose { max-width: 800px; }
.prose h2 { font-family: var(--serif); font-weight: 700; font-size: 26px; margin: 36px 0 8px; }
.prose p { font-size: 16px; line-height: 1.7; }
.prose.center { text-align: center; margin: 0 auto; }
.prose.center .btn { margin-top: 18px; }

/* ---------- footer ---------- */
.site-footer { background: linear-gradient(167deg, var(--deep) 0%, var(--deep-2) 100%); color: var(--white); padding: 90px 0 40px; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--gold); text-decoration: underline; }
.footer-logo { width: 710px; max-width: 100%; margin: 0 auto 50px; }
.footer-grid { border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); padding: 30px 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.footer-grid h2 { color: var(--white); font-family: var(--sans); font-weight: 500; font-size: 15px; letter-spacing: .5px; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid address { font-style: normal; }
.footer-grid li, .footer-grid p { font-weight: 300; font-size: 14px; letter-spacing: 1px; line-height: 1.6; margin: 0 0 4px; }
.contact-list li { display: flex; align-items: flex-start; gap: 10px; }
.contact-list svg { flex: none; width: 14px; height: 14px; margin-top: 4px; color: var(--white); }
.disclaimer { max-width: 900px; margin: 28px auto 0; font-weight: 300; font-size: 13px; line-height: 1.7; letter-spacing: .3px; text-align: center; color: #e4e9ef; }
.copyright { text-align: center; font-weight: 300; font-size: 12px; margin-top: 20px; color: #e4e9ef; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; text-align: center; } .contact-list li { justify-content: center; } }

/* back-to-top button (a plain link to the top of the page) */
.to-top { position: fixed; right: 20px; bottom: 20px; width: 42px; height: 42px; border-radius: 50%; background: var(--gold); color: var(--deep); display: flex; align-items: center; justify-content: center; opacity: .9; }
.to-top:hover, .to-top:focus-visible { opacity: 1; color: var(--deep); }
.to-top svg { width: 20px; height: 20px; }
@media (max-width: 600px) { .to-top { display: none; } }

/* ---------- gentle fade-in on scroll (browsers that support it; no script) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
    @keyframes reveal { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
  }
}
