/*
 * Huddersfield Physiotherapy
 * Main stylesheet
 *
 * Brand colours:
 * Navy:   #003A70
 * Blue:   #0072CE
 * Yellow: #FFC107
 * White:  #FFFFFF
 */

body {
    font-family: "Montserrat", sans-serif;
    background: url('../img/bg.webp') no-repeat center center fixed;
    background-size: cover;
    color: #003A70;
    font-size: 16px;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding-bottom: 5px;
    color: #003A70;
    line-height: 1.3;
    margin-top: 0;
}

h1 { font-size: 2.2em; }
h2 { font-size: 1.8em; }
h3 { font-size: 1.4em; }
h4 { font-size: 1.2em; }

p {
    font-size: 1.1em;
    line-height: 1.7;
    color: #003A70;
    margin-bottom: 1.25em;
}

nav a, nav a:visited {
    font-size: 1.1em;
    font-weight: 600;
    text-decoration: none;
    color: #003A70;
    transition: color 0.2s ease;
}

nav a:hover, nav a:focus {
    color: #0072CE !important;
    text-decoration: none;
}

a, a:visited {
    color: #003A70;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

a:hover, a:focus {
    color: #0072CE;
    text-decoration: none;
}

ul {
    font-size: 1.1em;
    line-height: 1.7;
    color: #003A70;
    list-style-type: none;
    padding-left: 0;
}

li {
    padding-left: 2em;
    position: relative;
    color: #003A70;
    margin-bottom: 0.35em;
}

li::before {
    padding-left: 0.8em;
    content: "✓";
    color: #0072CE;
    font-weight: 700;
    position: absolute;
    left: 0;
    top: 0;
    width: 0.8em;
}

.ul-standard {
    list-style: disc;
    padding-left: 1.5em;
}

.ul-standard li {
    padding-left: 0;
    position: static;
    color: #003A70;
}

.ul-standard li::before { content: none; }

.ul-pro li::before {
    content: "✓";
    color: #003A70;
}

.ul-con li::before {
    content: "✕";
    color: #003A70;
}

ol {
    font-size: 1.1em;
    line-height: 1.7;
    color: #003A70;
    padding-left: 1.5em;
}

.privacy-page ol {
    font-size: 1em;
    line-height: 1.7;
}

.privacy-page ol li {
    padding-left: 0;
    position: static;
}

/* Conditions */

.conditions-section .box-trans {
    height: 370px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.conditions-section .box-trans a,
.conditions-section .box-trans a:link,
.conditions-section .box-trans a:visited,
.conditions-section .box-trans a:hover,
.conditions-section .box-trans a:focus,
.conditions-section .box-trans a:active {
    color: #003A70;
    text-decoration: none !important;
    font-weight: 600;
}

.conditions-section .box-trans:hover {
    transform: translateY(-2px);
    background: #003A70;
}

.conditions-section .box-trans:hover a,
.conditions-section .box-trans:hover a:link,
.conditions-section .box-trans:hover a:visited,
.conditions-section .box-trans:hover a:hover,
.conditions-section .box-trans:hover a:focus,
.conditions-section .box-trans:hover a:active {
    color: #FFC107 !important;
    text-decoration: none !important;
}

.conditions-section .box-trans h3 {
    margin-bottom: 16px;
}

.conditions-section .box-trans img {
    display: block;
    margin: 0 auto 20px;
}

.conditions-section .box-trans br {
    display: none;
}

.conditions-section .box-trans a {
    display: block;
}

@media (max-width: 767px) {
    .conditions-section .box-trans {
        height: auto;
        min-height: 0;
    }
}

/* Boxes */

.box-trans, .box-white, .box {
    border-radius: 0;
    margin-bottom: 20px;
    padding: 25px 20px;	
    text-decoration: none;
}

.box-trans {
    background: #FFC107;
    text-decoration: none;
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.box-trans:hover {
    transform: translateY(-2px);
    background: #003A70;
    text-decoration: none;
}

.box-trans a, .box-trans a:visited {
    color: #003A70;
    text-decoration: none;
    font-weight: 600;
}

.box-trans a:hover, .box-trans a:focus {
    color: #FFC107 !important;
    text-decoration: none;
}

.box-white {
    background: #FFC107;
}

.box-white a,
.box-white a:visited,
.box-white p a,
.box-white li a {
    color: #003A70;
    text-decoration: none !important;
    font-weight: 600;
}

.box-white a:hover,
.box-white p a:hover,
.box-white li a:hover,
.box-white a:focus,
.box-white p a:focus,
.box-white li a:focus {
    color: #003A70 !important;
    text-decoration: underline !important;
}

.box {
    padding: 30px 20px;
    background: #0072CE;
    color: #FFFFFF;
}

.box h1, .box h2, .box h3, .box h4, .box h5, .box h6 {
    color: #FFFFFF;
}

.box p {
    color: #FFFFFF;
    margin-bottom: 1em;
}

.box li {
    color: #FFFFFF;
}

.box li::before {
    color: #FFC107;
}

.box a, .box a:visited {
    color: #FFFFFF;
    font-weight: 600;
    text-decoration: underline;
}

.box a:hover, .box a:focus {
    color: #FFC107 !important;
    text-decoration: none;
}

/* Buttons */

.btn {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 18px;
    background: #0072CE;
    color: #FFFFFF;
    border: 2px solid #0072CE;
    border-radius: 0;
    text-align: center;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease,
                border-color 0.2s ease;
}

.btn:hover, .btn:focus {
    background: #003A70;
    color: #FFFFFF !important;
    border-color: #003A70;
    text-decoration: none;
}

.btn-wht-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-wht {
    display: inline-block;
    padding: 10px 18px;
    background-color: #FFC107;
    color: #003A70;
    border: 2px solid #FFC107;
    border-radius: 0;
    white-space: nowrap;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease,
                border-color 0.2s ease;
}

.btn-wht:hover, .btn-wht:focus {
    background-color: #003A70;
    color: #FFFFFF !important;
    border-color: #003A70;
    text-decoration: none;
}

.cta-btn {
    display: block;
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.15em;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #003A70;
    background: #FFC107;
    border: 2px solid #003A70;
    border-radius: 0;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease,
                border-color 0.2s ease, transform 0.15s ease;
}

.cta-btn:hover, .cta-btn:focus {
    color: #FFFFFF !important;
    background: #003A70;
    border-color: #003A70;
    text-decoration: none;
    transform: translateY(-2px);
}

.cta-icon {
    width: 1.2em;
    height: 1.2em;
    margin-right: 8px;
    vertical-align: middle;
    fill: #003A70;
    transition: fill 0.2s ease;
}

.cta-btn:hover .cta-icon, .cta-btn:focus .cta-icon {
    fill: #FFFFFF;
}

@media (max-width: 767px) {
    .cta-btn { font-size: 1em; }
    .cta-btn .cta-icon {
        width: 1em;
        height: 1em;
    }
}

/* Images / Blog */

.blog-figure {
    margin: 30px 0;
    text-align: center;
}

.blog-figure img {
    max-width: 100%;
    height: auto;
    border-radius: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10);
}

.blog-figure figcaption {
    margin-top: 10px;
    font-size: 0.9em;
    color: #003A70;
    font-style: italic;
}

.blog-figure.hover-reveal {
    position: relative;
    display: inline-block;
    overflow: hidden;
    cursor: pointer;
}

.blog-figure.hover-reveal img {
    display: block;
    width: 100%;
    height: auto;
    transition: opacity 0.3s ease;
    border-radius: 0;
}

.blog-figure.hover-reveal .back-img {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.blog-figure.hover-reveal:hover .back-img { opacity: 1; }
.blog-figure.hover-reveal:hover .front-img { opacity: 0; }

.blog-figure.hover-reveal figcaption {
    margin-top: 10px;
    font-size: 0.9em;
    color: #003A70;
    font-style: italic;
    text-align: center;
}

@media (min-width: 768px) {
    .blog-figure { margin: 40px 0; }
    .blog-figure img { max-width: 90%; }
}

/* Video */

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    border-radius: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10);
    margin: 1rem 0;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Tables */

.styled-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.05em;
}

.styled-table td {
    padding: 12px 10px;
    vertical-align: top;
}

.styled-table tr {
    border-bottom: 1px solid #CCCCCC;
}

.styled-table tr:last-child { border-bottom: none; }

/* Accordion */

.accordion-wrap {
    margin: 2rem 0;
}

.accordion-item {
    border-bottom: 1px solid #CCCCCC;
    padding: 0.9rem 0;
}

.accordion-item summary {
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding: 0.75rem 1.5em 0.75rem 1rem;
    color: #FFC107;
    background: transparent;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.accordion-item summary::-webkit-details-marker {
    display: none;
}

.accordion-item summary::after {
    content: "+";
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25em;
    font-weight: 700;
    color: #0072CE;
}

.accordion-item[open] summary::after {
    content: "–";
}

.accordion-item summary:hover,
.accordion-item summary:focus {
    color: #FFC107;
    background: #003A70;
}

.accordion-content {
    padding: 0.75rem 1rem 0;
    color: #003A70;
    line-height: 1.7;
}

.accordion-content p,
.accordion-content li {
    color: #003A70;
}

/* Trust logos */

.trust-logos {
    padding: 24px 0;
    background: #FAFAFA;
}

.trust-logos__list {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    list-style: none;
    margin: 0;
    padding: 0 10px;
    flex-wrap: nowrap;
}

.trust-logos__list li {
    flex: 0 1 auto;
    text-align: center;
    padding: 0;
    position: static;
}

.trust-logos__list li::before { content: none !important; }

.trust-logos__list img {
    max-height: 52px;
    max-width: 160px;
    width: auto;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.75;
    transition: filter 0.25s ease, opacity 0.25s ease,
                transform 0.2s ease;
}

.trust-logos__list img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.04);
}

@media (max-width: 768px) {
    .trust-logos__list {
        flex-wrap: wrap;
        justify-content: space-around;
        gap: 12px;
        padding: 0 5px;
    }

    .trust-logos__list img {
        max-height: 56px;
        max-width: 180px;
    }
}

@media (max-width: 480px) {
    .trust-logos__list li { flex: 1 1 45%; }

    .trust-logos__list img {
        max-height: 50px;
        max-width: 160px;
    }
}

/* Footer */

footer {
    background: rgba(255, 255, 255, 0.95);
    font-size: 1em;
}

footer .copyright,
footer .footer-copy,
footer .footer-meta {
    color: #003A70;
    font-size: 1em;
}

.site-footer {
    background: #FFFFFF;
    padding: 50px 0 30px;
    margin-top: 40px;
    font-size: 1em;
}

.site-footer .footer-col h3 {
    margin-bottom: 0.5em;
    padding-left: 0;
}

.site-footer .footer-col ul {
    padding-left: 0;
    margin-top: 0;
}

.site-footer .footer-col ul li {
    padding-left: 0;
    margin-bottom: 0.25em;
}

.site-footer .footer-col ul li::before { content: none; }

.site-footer a,
.site-footer a:visited {
    color: #003A70;
    text-decoration: none;
    font-size: 1em;
}

.site-footer a:hover,
.site-footer a:focus {
    color: #0072CE !important;
    text-decoration: underline;
}

.footer-brand {
    font-size: 1.4em;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #003A70;
    margin-bottom: 10px;
    padding-top: 15px;
}

.site-footer h4 {
    font-size: 1.05em;
    font-weight: 700;
    color: #0072CE;
    margin-bottom: 12px;
}

.footer-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.footer-social a { display: inline-flex; }

.footer-social img {
    width: 26px;
    height: auto;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.footer-social img:hover { opacity: 1; }

@media (min-width: 768px) {
    .footer-social { justify-content: flex-end; }
}

/* Back to top */

#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 46px;
    height: 46px;
    line-height: 42px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: #FFFFFF;
    background: #003A70;
    border: 2px solid #003A70;
    border-radius: 0;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, transform 0.3s, color 0.3s,
                background-color 0.3s;
    z-index: 1000;
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover,
#back-to-top:focus {
    color: #003A70;
    background: #FFC107;
    border-color: #FFC107;
    transform: translateY(-2px);
}

/* Brand & address bar */

.brand {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 0;
}

.brand > a {
    display: block;
    width: 100%;
    text-align: center;
}

.site-logo {
    display: block;
    width: 100%;
    max-width: 360px;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: contain;
    margin: 0 auto;
}
.csp-logo {
    text-align: center;
    margin: 20px 0;
}

.csp-logo img {
    display: block;
    max-width: 100px;
    height: auto;
    margin: 0 auto;
}
.address-bar {
    margin: 0;
    padding: 5px 0 30px;
    text-align: center;
    font-size: 1em;
    font-weight: 500;
    letter-spacing: 0.5px;
    line-height: 1.7;
    color: #003A70;
}

.address-bar a,
.address-bar a:visited {
    color: #003A70;
    text-decoration: none;
    font-weight: 600;
}

.address-bar a:hover,
.address-bar a:focus {
    color: #0072CE;
    text-decoration: underline;
}

.brand-divider {
    margin: 0 10px;
    color: #FFC107;
    font-weight: 700;
}

@media screen and (max-width: 767px) {
    .brand { padding: 15px 0 10px; }

    .site-logo {
        width: 320px;
        max-width: 85%;
    }

    .address-bar {
        padding: 5px 10px 25px;
        font-size: 0.9em;
        letter-spacing: 0.25px;
        line-height: 1.8;
    }

    .brand-divider { margin: 0 5px; }
}

@media screen and (min-width: 768px) {
    .site-logo { width: 450px; }
}

/* Accessibility / keyboard focus */

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.cta-btn:focus-visible,
.btn-wht:focus-visible,
summary:focus-visible {
    outline: 3px solid #FFC107;
    outline-offset: 3px;
}

/* Clearfix */

@media screen and (min-width: 1200px) {
    .box::after {
        content: '';
        display: table;
        clear: both;
    }
}
