/*
Theme Name:   New Forest Psychiatry
Theme URI:    https://www.newforestpsychiatry.com
Description:  Child theme of Hello Elementor, built for New Forest Psychiatry Limited. Private, multidisciplinary and patient-centred psychiatric care in the calm of the New Forest.
Author:       Louis Edoo, Strobia Creative Studio
Author URI:   https://strobia.uk
Template:     hello-elementor
Version:      1.0.0
Text Domain:  hello-elementor-nfp
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Tags:         accessibility-ready, custom-colors, custom-menu, custom-logo
*/

/* ==========================================================================
   NEW FOREST PSYCHIATRY — CHILD THEME
   ==========================================================================
   Parent styles are enqueued via functions.php — do not @import here.

   NOTE ON GLOBALS: colours and typography are set in Elementor
   (Site Settings → Global Colors / Global Fonts) so they are editable
   without code. The custom properties below mirror those values for use
   in this stylesheet only. If a palette value changes in Elementor,
   update it here too.
   ========================================================================== */

:root {
  /* Palette — mirrors Elementor Global Colors */
  --nfp-evergreen : #24443A;  /* Primary   · wordmark, headings, footer grounds */
  --nfp-sage      : #5A7D6B;  /* Secondary · rules, icons, hover states        */
  --nfp-mist      : #E4EAE4;  /* Neutral   · section tints, borders            */
  --nfp-cream     : #F7F2E8;  /* Neutral   · page background                   */
  --nfp-ink       : #16211D;  /* Text      · body copy (green-cast black)      */
  --nfp-gold      : #B3A369;  /* Accent    · sparing — never for small text    */

  /* Tints — derived, for backgrounds and states */
  --nfp-evergreen-10 : #E9EDEB;
  --nfp-evergreen-20 : #D3DAD8;
  --nfp-sage-10      : #EEF2F0;
  --nfp-sage-20      : #DEE5E1;

  /* Typography */
  --nfp-font-display : "Cormorant SC", "Cormorant Garamond", Garamond, Georgia, serif;
  --nfp-font-sub     : "Gill Sans Nova", "Gill Sans", "Gill Sans MT", "Josefin Sans", sans-serif;
  --nfp-font-body    : "Gill Sans Nova", "Gill Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Spacing rhythm */
  --nfp-space-xs : 0.5rem;
  --nfp-space-sm : 1rem;
  --nfp-space-md : 2rem;
  --nfp-space-lg : 4rem;
  --nfp-space-xl : 6rem;

  /* Focus ring — accessibility, see below */
  --nfp-focus : var(--nfp-gold);
}


/* ==========================================================================
   ACCESSIBILITY
   --------------------------------------------------------------------------
   This site serves autistic and ADHD patients. These rules are not optional
   polish — they are part of the brief. Do not remove.
   ========================================================================== */

/* Visible focus state on every interactive element.
   Never replace this with outline:none. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible,
.elementor-button:focus-visible {
  outline: 3px solid var(--nfp-focus);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Skip link — hidden until focused, then clearly visible */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100000;
  padding: 1rem 1.5rem;
  background: var(--nfp-evergreen);
  color: #fff;
  font-family: var(--nfp-font-body);
  text-decoration: none;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Respect users who have asked for reduced motion.
   Relevant here: sensory sensitivity is common in our patient group. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Screen-reader-only utility */
.nfp-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ==========================================================================
   BASE
   ========================================================================== */

body {
  background-color: var(--nfp-cream);
  color: var(--nfp-ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Comfortable measure for reading — matters for ADHD and dyslexic readers.
   Applies to body copy inside Elementor text widgets only. */
.elementor-widget-text-editor p,
.elementor-widget-theme-post-content p {
  max-width: 68ch;
}

/* Generous line height for body copy */
.elementor-widget-text-editor,
.elementor-widget-theme-post-content {
  line-height: 1.75;
}


/* ==========================================================================
   TYPOGRAPHY HELPERS
   --------------------------------------------------------------------------
   Utility classes to apply in Elementor's "CSS Classes" field.
   ========================================================================== */

/* Wordmark treatment — spaced serif caps, per brand */
.nfp-wordmark {
  font-family: var(--nfp-font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  text-indent: 0.28em; /* compensates trailing letterspace, keeps optical centre */
}

/* Subline treatment — "Hampshire & Dorset" */
.nfp-subline {
  font-family: var(--nfp-font-sub);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.48em;
  text-indent: 0.48em;
  font-size: 0.72rem;
  color: var(--nfp-sage);
}

/* Eyebrow / kicker above section headings */
.nfp-kicker {
  font-family: var(--nfp-font-sub);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.7rem;
  color: var(--nfp-sage);
  display: block;
  margin-bottom: var(--nfp-space-sm);
}

/* Pull quote — for patient voice and brand statements */
.nfp-quote {
  font-family: var(--nfp-font-display);
  font-style: italic;
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  line-height: 1.35;
  color: var(--nfp-evergreen);
  border-left: 4px solid var(--nfp-gold);
  padding-left: var(--nfp-space-md);
  max-width: 32ch;
}


/* ==========================================================================
   COMPONENTS
   ========================================================================== */

/* Reversed section — cream type on evergreen ground */
.nfp-reversed,
.nfp-reversed h1,
.nfp-reversed h2,
.nfp-reversed h3,
.nfp-reversed h4,
.nfp-reversed p {
  color: var(--nfp-cream);
}
.nfp-reversed .nfp-kicker,
.nfp-reversed .nfp-subline {
  color: var(--nfp-mist);
}

/* Quiet horizontal rule */
.nfp-rule {
  border: 0;
  border-top: 1px solid var(--nfp-mist);
  margin: var(--nfp-space-lg) 0;
}

/* Trust bar — regulator and association logos.
   Keep these visually quiet; they signal, they don't shout. */
.nfp-trust-bar img {
  filter: grayscale(100%);
  opacity: 0.65;
  transition: opacity 0.2s ease, filter 0.2s ease;
}
.nfp-trust-bar img:hover,
.nfp-trust-bar img:focus {
  filter: grayscale(0%);
  opacity: 1;
}

/* Emergency notice — must be noticeable without being alarming.
   Deliberately not red: this is reassurance, not warning. */
.nfp-emergency {
  background: var(--nfp-mist);
  border-left: 5px solid var(--nfp-gold);
  padding: var(--nfp-space-md);
}
.nfp-emergency strong {
  color: var(--nfp-evergreen);
}


/* ==========================================================================
   FORMS — Elementor Pro form widget
   --------------------------------------------------------------------------
   The enquiry form is the most important interactive element on this site.
   It must feel calm, safe and unhurried.
   ========================================================================== */

.elementor-field-group .elementor-field {
  border: 1px solid var(--nfp-sage) !important;
  border-radius: 2px;
  background: #fff;
  padding: 0.85rem 1rem;
  font-family: var(--nfp-font-body);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.elementor-field-group .elementor-field:focus {
  border-color: var(--nfp-evergreen) !important;
  box-shadow: 0 0 0 3px var(--nfp-sage-20);
}
.elementor-field-group > label {
  font-family: var(--nfp-font-body);
  color: var(--nfp-evergreen);
  font-weight: 500;
  margin-bottom: 0.4rem;
}

/* Required-field marker — announced to screen readers via the label,
   this is purely visual reinforcement */
.elementor-field-required .elementor-field-label::after {
  content: " *";
  color: var(--nfp-gold);
}

/* Error and success messages */
.elementor-message.elementor-message-danger {
  color: #8C3A2B;
}
.elementor-message.elementor-message-success {
  color: var(--nfp-evergreen);
  font-family: var(--nfp-font-body);
}


/* ==========================================================================
   PRINT
   --------------------------------------------------------------------------
   Patients print appointment and fee information. Make it legible and
   don't waste their ink.
   ========================================================================== */

@media print {
  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 12pt;
  }
  header,
  footer,
  nav,
  .elementor-nav-menu,
  .nfp-trust-bar,
  video,
  iframe,
  .elementor-button {
    display: none !important;
  }
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
  }
}

/* ==========================================================================
   HEADER — layout and scroll state
   ========================================================================== */
.elementor-element-66df2674 .e-con-inner { max-width: min(100%, 1320px); }
.elementor-element-66df2674.nfp-scrolled { background-color: var(--nfp-evergreen); }
