/* =========================================================
   CLIENT: Sarah — Psychologist, Manchester
   File: assets/css/styles.css  (the "paint and furniture")
   ========================================================= */

/* ---------- BRAND SETTINGS (change the look here) ---------- */
:root {
  --font-heading: "Literata", Georgia, "Times New Roman", serif;
  --font-body: "Poppins", Arial, Helvetica, sans-serif;
  --font-logo: "Allura", "Brush Script MT", cursive;

  --color-text: #2E2B29;          /* main text */
  --color-text-soft: #4A4540;     /* labels, small print */
  --color-heading: #2A2725;       /* headings */
  --color-bg: #FFFFFF;            /* page background */
  --color-panel: #EDEBE9;         /* soft grey welcome panel */
  --color-footer-bg: #2F3A34;     /* footer background (deep sage) */
  --color-footer-text: #E9E6E1;   /* footer text */
  --color-accent: #2F3A34;        /* outlines, small accents */
  --color-whatsapp: #25D366;

  --container: 1320px;
  --radius-pill: 999px;
  --header-height: 112px;
}

/* ---------- BASICS ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 400; color: var(--color-heading); margin: 0; line-height: 1.2; }
p { margin: 0 0 1.25rem; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 2rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: #fff; padding: .75rem 1rem; z-index: 200; }
.skip-link:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
[id] { scroll-margin-top: 1rem; }

/* Small spaced capitals used above headings */
.eyebrow {
  display: block;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 1.05rem;
  font-weight: 400;
  margin-bottom: .35rem;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 400;
  text-decoration: none;
  padding: 1rem 2.6rem;
  border-radius: var(--radius-pill);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn--light { background: #fff; color: var(--color-text); border: 1px solid #fff; }
.btn--light:hover { background: transparent; color: #fff; }
.btn--outline { background: transparent; color: var(--color-text); border: 1px solid var(--color-text); }
.btn--outline:hover { background: var(--color-text); color: #fff; }

/* ---------- HEADER ---------- */
.site-header { background: #fff; position: relative; z-index: 50; }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  min-height: var(--header-height);
  max-width: none; padding: 0 2.5rem;
}
.logo { text-decoration: none; display: inline-flex; flex-direction: column; line-height: 1; color: var(--color-heading); }
.logo__name { font-family: var(--font-logo); font-size: 2.9rem; line-height: 1; }
.logo__tagline { font-family: var(--font-body); font-size: .72rem; letter-spacing: .32em; text-transform: uppercase; color: var(--color-text-soft); margin-top: .35rem; padding-left: .15rem; }

.main-nav ul { list-style: none; display: flex; gap: 2.6rem; margin: 0; padding: 0; }
.main-nav a { text-decoration: none; font-size: 1.05rem; color: var(--color-text); padding: .25rem 0; border-bottom: 1px solid transparent; }
.main-nav a:hover { border-bottom-color: currentColor; }
.header-phone { font-size: 1.6rem; text-decoration: none; letter-spacing: .02em; white-space: nowrap; }

.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; color: var(--color-text); }
.nav-toggle svg { width: 30px; height: 30px; }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 78vh; min-height: clamp(560px, 78vh, 900px); display: flex; align-items: center; overflow: hidden; color: #fff; }
.hero__slides { position: absolute; inset: 0; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero::after { /* darkens the left so white text stays readable */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(20,22,20,.62) 0%, rgba(20,22,20,.42) 40%, rgba(20,22,20,.08) 75%, rgba(20,22,20,0) 100%);
}
.hero__content { position: relative; z-index: 2; width: 100%; padding: 5rem 2.5rem; max-width: none; }
.hero__text { max-width: 980px; }
.hero .eyebrow { color: #fff; font-size: 1.15rem; margin-bottom: .6rem; }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 4.6vw, 4.4rem); line-height: 1.22; margin-bottom: 2rem; max-width: 14ch; }
.hero__lead { font-size: 1.3rem; line-height: 1.6; max-width: 46ch; }
.hero .btn { margin-top: 4rem; }
.hero__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  background: none; border: 0; color: #fff; cursor: pointer; padding: 1rem; opacity: .85;
}
.hero__arrow:hover { opacity: 1; }
.hero__arrow svg { width: 26px; height: 52px; }
.hero__arrow--prev { left: .25rem; }
.hero__arrow--next { right: .25rem; }
.hero__arrow[hidden] { display: none; }

/* ---------- WELCOME / ABOUT ---------- */
.welcome { position: relative; padding: 0 0 4rem; }
.welcome__panel {
  position: absolute; top: 0; bottom: 4rem; left: 10%; width: 56%;
  background: var(--color-panel); z-index: 0;
}
.welcome__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 50% 1fr; align-items: center;
  max-width: none; padding: 5rem 0 0; margin: 0;
}
.welcome__text { padding: 3rem 4.5rem 3rem calc(20% + 4rem); }
.welcome__text .eyebrow { color: var(--color-text); }
.welcome__text h2 { font-size: clamp(2rem, 2.6vw, 2.6rem); margin-bottom: 1.8rem; }
.welcome__text p { font-size: 1.12rem; line-height: 1.85; }
.welcome__text .btn { margin-top: 1.5rem; }
.welcome__media { position: relative; margin-right: 12%; }
.welcome__photo { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.welcome__badges {
  position: absolute; left: 3%; right: 23%; bottom: 3.5%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem;
}
.welcome__badges img { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: contain; background: #fff; }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--color-footer-bg); color: var(--color-footer-text); font-size: .98rem; margin-top: 2rem; }
.site-footer a { color: var(--color-footer-text); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 3rem;
  padding-top: 4.5rem; padding-bottom: 3.5rem;
}
.footer__brand .logo { color: #fff; }
.footer__brand .logo__tagline { color: var(--color-footer-text); }
.footer__brand p { margin-top: 1.4rem; opacity: .9; }
.footer__heading { font-family: var(--font-heading); font-size: 1.3rem; color: #fff; margin-bottom: 1.1rem; }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer__crisis {
  border-top: 1px solid rgba(255,255,255,.18);
  padding-top: 1.6rem; padding-bottom: 1.6rem; font-size: .92rem; opacity: .95;
}
.footer__crisis p { margin: 0; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.18);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem;
  padding-top: 1.4rem; padding-bottom: 1.6rem; font-size: .85rem; opacity: .85;
}
.footer__bottom p { margin: 0; }

/* ---------- FLOATING BUTTONS ---------- */
.whatsapp-float {
  position: fixed; left: 1.5rem; bottom: 1.5rem; z-index: 60;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--color-whatsapp); color: #fff;
  display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
.whatsapp-float svg { width: 36px; height: 36px; }
.back-to-top {
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 60;
  width: 64px; height: 64px; background: #fff; border: 0; cursor: pointer;
  display: grid; place-items: center; box-shadow: 0 2px 10px rgba(0,0,0,.12);
  opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s;
  color: var(--color-text);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; }
.back-to-top svg { width: 22px; height: 22px; }

/* ---------- SIMPLE CONTENT PAGES (FAQ, policies) ---------- */
.page-intro { background: var(--color-panel); padding: 4rem 0 3rem; }
.page-intro h1 { font-size: clamp(2.2rem, 3.4vw, 3rem); }
.page-intro p { margin: .8rem 0 0; color: var(--color-text-soft); }
.page-body { padding: 3.5rem 0 4.5rem; }
.page-body .container { max-width: 860px; }
.page-body h2 { font-size: 1.6rem; margin: 2.4rem 0 .8rem; }
.page-body ul { padding-left: 1.2rem; }
.placeholder-note {
  border: 1px dashed #A79F97; background: #FAF9F7; padding: 1rem 1.25rem; margin-bottom: 2rem; font-size: .95rem;
}
.faq-item { border-bottom: 1px solid #DDD8D2; }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 1.25rem 2.5rem 1.25rem 0; position: relative;
  font-family: var(--font-heading); font-size: 1.25rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: .25rem; top: 1.05rem; font-family: var(--font-body); font-size: 1.5rem; }
.faq-item[open] summary::after { content: "–"; }
.faq-item div { padding: 0 0 1.25rem; }

/* ---------- TABLET ---------- */
@media (max-width: 1180px) {
  .main-nav ul { gap: 1.6rem; }
  .header-phone { font-size: 1.25rem; }
  .welcome__panel { left: 4%; width: 62%; }
  .welcome__text { padding-left: calc(8% + 2.5rem); padding-right: 3rem; }
  .welcome__media { margin-right: 5%; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- MOBILE MENU (below 980px) ---------- */
@media (max-width: 980px) {
  :root { --header-height: 88px; }
  .site-header__inner { padding: 0 1.25rem; }
  .logo__name { font-size: 2.3rem; }
  .logo__tagline { font-size: .62rem; letter-spacing: .26em; }
  .nav-toggle { display: block; order: 3; }
  .header-phone { order: 2; margin-left: auto; font-size: 1.05rem; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-top: 1px solid #EEE; box-shadow: 0 10px 20px rgba(0,0,0,.08);
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: .5rem 1.25rem 1rem; }
  .main-nav a { display: block; padding: .9rem 0; border-bottom: 1px solid #F0EEEB; }
}

/* ---------- WELCOME STACKS (tablet portrait and phone) ---------- */
@media (max-width: 900px) {
  .welcome { padding: 0 0 2rem; }
  .welcome__panel { display: none; }
  .welcome__grid { grid-template-columns: 1fr; padding: 0; }
  .welcome__text { background: var(--color-panel); padding: 3.5rem 2rem; }
  .welcome__media { margin: -1rem auto 0; width: calc(100% - 4rem); max-width: 560px; }
  .welcome__badges { left: 4%; right: 4%; gap: .75rem; }
}

/* ---------- PHONE ---------- */
@media (max-width: 760px) {
  body { font-size: 1rem; }
  .container { padding: 0 1.25rem; }
  .header-phone { display: none; }
  .hero { min-height: 82vh; align-items: flex-end; }
  .hero::after { background: linear-gradient(180deg, rgba(20,22,20,.2) 0%, rgba(20,22,20,.55) 45%, rgba(20,22,20,.7) 100%); }
  .hero__content { padding: 3rem 1.25rem 3.5rem; }
  .hero .eyebrow { font-size: .9rem; }
  .hero__lead { font-size: 1.1rem; }
  .hero .btn { margin-top: 2rem; }
  .hero__arrow { display: none; }
  .welcome__text { padding: 3rem 1.25rem; }
  .welcome__media { width: calc(100% - 2.5rem); }


  .footer__grid { grid-template-columns: 1fr; gap: 2.2rem; padding-top: 3.5rem; }
  .footer__bottom { flex-direction: column; }
  .whatsapp-float, .back-to-top { width: 54px; height: 54px; bottom: 1rem; }
  .whatsapp-float { left: 1rem; }
  .back-to-top { right: 1rem; }
  .whatsapp-float svg { width: 30px; height: 30px; }
}
