/* =========================================================
   FREOPSYCH
   Global Site Styles
   File: /css/styles.css
   Bootstrap 5.3 compatible
   ========================================================= */


/* ---------------------------------------------------------
   Google Fonts
   --------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Source+Serif+4:opsz,wght@8..60,500;8..60,600;8..60,700&display=swap');


/* ---------------------------------------------------------
   Shared FreoPsych stylesheets
   --------------------------------------------------------- */

@import url('./header.css');
@import url('./footer.css');


/* ---------------------------------------------------------
   Design system
   --------------------------------------------------------- */

:root {
    --freopsych-navy: #17324d;
    --freopsych-navy-deep: #10263a;
    --freopsych-blue: #2f5f88;
    --freopsych-blue-light: #6f99bb;
    --freopsych-blue-soft: #eaf1f6;

    --freopsych-sage: #8d9f94;
    --freopsych-sage-soft: #eef2ef;

    --freopsych-stone: #f7f5f1;
    --freopsych-warm-white: #fbfaf8;
    --freopsych-white: #ffffff;

    --freopsych-text: #23313d;
    --freopsych-muted: #66737e;
    --freopsych-light-text: #7f8a93;

    --freopsych-border: #d9e1e7;
    --freopsych-border-soft: #e9edef;

    --freopsych-success: #4f7460;

    --freopsych-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
    --freopsych-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    --freopsych-radius-sm: 6px;
    --freopsych-radius: 10px;
    --freopsych-radius-lg: 16px;

    --freopsych-shadow-sm: 0 4px 16px rgba(16, 38, 58, 0.06);
    --freopsych-shadow: 0 10px 30px rgba(16, 38, 58, 0.08);
    --freopsych-shadow-lg: 0 18px 44px rgba(16, 38, 58, 0.11);

    --freopsych-section-space: 5.5rem;
    --freopsych-section-space-mobile: 3.6rem;
}


/* ---------------------------------------------------------
   Base
   --------------------------------------------------------- */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--freopsych-text);
    background: var(--freopsych-warm-white);
    font-family: var(--freopsych-sans);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.72;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

main {
    display: block;
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

figure {
    margin: 0;
}

address {
    font-style: normal;
}

::selection {
    color: var(--freopsych-navy-deep);
    background: var(--freopsych-blue-soft);
}


/* ---------------------------------------------------------
   Typography
   --------------------------------------------------------- */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    color: var(--freopsych-navy-deep);
    font-family: var(--freopsych-serif);
    font-weight: 600;
    line-height: 1.18;
    letter-spacing: -0.018em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.8rem);
}

h2 {
    font-size: clamp(2rem, 3.5vw, 3.25rem);
}

h3 {
    font-size: clamp(1.4rem, 2.2vw, 2rem);
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-top: 0;
    margin-bottom: 1.2rem;
}

p:last-child {
    margin-bottom: 0;
}

.lead {
    color: #42515d;
    font-size: clamp(1.08rem, 1.5vw, 1.28rem);
    line-height: 1.72;
}

.text-muted-freopsych {
    color: var(--freopsych-muted) !important;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 0.8rem;
    color: var(--freopsych-blue);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.section-title {
    max-width: 760px;
    margin-bottom: 1.2rem;
}

.section-intro {
    max-width: 760px;
    color: var(--freopsych-muted);
    font-size: 1.08rem;
    line-height: 1.75;
}


/* ---------------------------------------------------------
   Links
   --------------------------------------------------------- */

a {
    color: var(--freopsych-blue);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.16em;
}

a:hover,
a:focus {
    color: var(--freopsych-navy);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    font-weight: 600;
    text-decoration: none;
}

.link-arrow::after {
    content: "→";
    transition: transform 0.2s ease;
}

.link-arrow:hover::after,
.link-arrow:focus::after {
    transform: translateX(3px);
}


/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */

.btn {
    border-radius: var(--freopsych-radius-sm);
    font-weight: 600;
}

.btn-freopsych-primary {
    color: var(--freopsych-white);
    background: var(--freopsych-navy);
    border-color: var(--freopsych-navy);
}

.btn-freopsych-primary:hover,
.btn-freopsych-primary:focus {
    color: var(--freopsych-white);
    background: var(--freopsych-navy-deep);
    border-color: var(--freopsych-navy-deep);
}

.btn-freopsych-secondary {
    color: var(--freopsych-navy);
    background: transparent;
    border: 1px solid var(--freopsych-navy);
}

.btn-freopsych-secondary:hover,
.btn-freopsych-secondary:focus {
    color: var(--freopsych-white);
    background: var(--freopsych-navy);
    border-color: var(--freopsych-navy);
}

.btn-lg {
    padding: 0.82rem 1.35rem;
    font-size: 1rem;
}


/* ---------------------------------------------------------
   Section spacing and backgrounds
   --------------------------------------------------------- */

.section {
    padding-top: var(--freopsych-section-space);
    padding-bottom: var(--freopsych-section-space);
}

.section-sm {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

.section-white {
    background: var(--freopsych-white);
}

.section-warm {
    background: var(--freopsych-stone);
}

.section-blue-soft {
    background: var(--freopsych-blue-soft);
}

.section-sage-soft {
    background: var(--freopsych-sage-soft);
}

.section-navy {
    color: rgba(255, 255, 255, 0.88);
    background: var(--freopsych-navy-deep);
}

.section-navy h1,
.section-navy h2,
.section-navy h3,
.section-navy h4,
.section-navy h5,
.section-navy h6 {
    color: var(--freopsych-white);
}

.section-navy .section-intro,
.section-navy .lead {
    color: rgba(255, 255, 255, 0.78);
}


/* ---------------------------------------------------------
   Cards
   --------------------------------------------------------- */

.freopsych-card {
    height: 100%;
    padding: 1.75rem;
    background: var(--freopsych-white);
    border: 1px solid var(--freopsych-border-soft);
    border-radius: var(--freopsych-radius);
    box-shadow: var(--freopsych-shadow-sm);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.freopsych-card:hover {
    transform: translateY(-3px);
    border-color: var(--freopsych-border);
    box-shadow: var(--freopsych-shadow);
}

.freopsych-card h3 {
    margin-bottom: 0.7rem;
    font-size: 1.4rem;
}

.freopsych-card p {
    color: var(--freopsych-muted);
}


/* ---------------------------------------------------------
   Trust / credential treatments
   --------------------------------------------------------- */

.credential-panel {
    padding: 1.6rem;
    background: var(--freopsych-white);
    border: 1px solid var(--freopsych-border);
    border-radius: var(--freopsych-radius);
}

.credential-panel img {
    display: block;
    max-width: 260px;
}

.trust-strip {
    padding: 1rem 0;
    background: var(--freopsych-stone);
    border-top: 1px solid var(--freopsych-border-soft);
    border-bottom: 1px solid var(--freopsych-border-soft);
}

.trust-strip-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem 1.1rem;
    color: var(--freopsych-muted);
    font-size: 0.9rem;
    text-align: center;
}


/* ---------------------------------------------------------
   Images
   --------------------------------------------------------- */

.image-frame {
    overflow: hidden;
    border-radius: var(--freopsych-radius-lg);
    box-shadow: var(--freopsych-shadow);
}

.image-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portrait-frame {
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
    border-radius: var(--freopsych-radius-lg);
    background: var(--freopsych-stone);
    box-shadow: var(--freopsych-shadow);
}


/* ---------------------------------------------------------
   Lists
   --------------------------------------------------------- */

.freopsych-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.freopsych-list li {
    position: relative;
    margin-bottom: 0.8rem;
    padding-left: 1.55rem;
}

.freopsych-list li::before {
    content: "";
    position: absolute;
    top: 0.72em;
    left: 0;
    width: 0.48rem;
    height: 0.48rem;
    border-radius: 50%;
    background: var(--freopsych-blue);
}


/* ---------------------------------------------------------
   Forms
   --------------------------------------------------------- */

.form-label {
    color: var(--freopsych-navy-deep);
    font-weight: 600;
}

.form-control,
.form-select {
    min-height: 48px;
    color: var(--freopsych-text);
    background: var(--freopsych-white);
    border: 1px solid #cfd8de;
    border-radius: var(--freopsych-radius-sm);
}

textarea.form-control {
    min-height: 150px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--freopsych-blue-light);
    box-shadow: 0 0 0 0.22rem rgba(47, 95, 136, 0.12);
}


/* ---------------------------------------------------------
   Horizontal rules
   --------------------------------------------------------- */

hr {
    margin: 2rem 0;
    border-color: var(--freopsych-border);
    opacity: 1;
}


/* ---------------------------------------------------------
   Accessibility
   --------------------------------------------------------- */

.visually-hidden-focusable:not(:focus):not(:focus-within) {
    position: absolute !important;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid rgba(47, 95, 136, 0.3);
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2000;
    padding: 0.7rem 1rem;
    color: var(--freopsych-white);
    background: var(--freopsych-navy-deep);
    border-radius: var(--freopsych-radius-sm);
    transform: translateY(-160%);
    transition: transform 0.2s ease;
}

.skip-link:focus {
    color: var(--freopsych-white);
    transform: translateY(0);
}


/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (max-width: 991.98px) {

    :root {
        --freopsych-section-space: 4.5rem;
    }

    body {
        line-height: 1.68;
    }
}


@media (max-width: 767.98px) {

    :root {
        --freopsych-section-space: var(--freopsych-section-space-mobile);
    }

    .section-sm {
        padding-top: 2.8rem;
        padding-bottom: 2.8rem;
    }

    .freopsych-card {
        padding: 1.45rem;
    }

    .section-intro {
        font-size: 1rem;
    }
}


@media (max-width: 575.98px) {

    body {
        font-size: 0.97rem;
    }

    .btn-lg {
        width: 100%;
    }

    .credential-panel {
        padding: 1.25rem;
    }

    .credential-panel img {
        max-width: 220px;
    }
}


/* ---------------------------------------------------------
   Reduced motion
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
