/*
Theme Name: CSTD Bath
Author: Hut Six Digital
Author URI: https://www.hutsixdigital.co.uk
Version:  1.0

*/

/* BRAND TOKENS */
:root {
	--cream: #F5F3EF;
	--sand: #E9E4DE;
	--taupe: #B8A89A;
	--terra: #C27A5A;
	--terra-dark: #996047;
	--terra-light: #D19B83;
	--slate: #576C8D;
	--navy: #2F4F6F;
	--sage: #5D6C4F;
	--ink: #1F3348;
	--field-border: #7A6E64;
	--font-heading: "Jost", "Josefin Sans", sans-serif;
	--font-body: "Open Sans", sans-serif;
	--shadow-sm: 0 0 10px rgba(31,51,72,0.12);
	--shadow-sm-hover: 0 0 10px rgba(31,51,72,0.25);
	--shadow-dropdown: 0 4px 16px rgba(31,51,72,0.18);
	--radius-card: 20px;
}

/* TYPOGRAPHY */
.screen-reader-text { display: none; }
body, p, li, .btn, label, input, .dropdown-item, .navbar-light .navbar-nav .nav-link { font-family: var(--font-body); font-weight: 400; font-size: calc(16px + (17 - 16) * ((100vw - 300px) / (1600 - 300))); }
body { color: var(--ink); background: var(--cream); }
a { transition: 300ms ease all; text-decoration: underline; color: var(--navy); }
p a { text-decoration: underline; }
a:hover { color: var(--terra-dark); }
p { line-height: 160%; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; color: var(--navy); line-height: 1.2; margin-bottom: 1.25rem; }
h1 { font-size: calc(36px + (42 - 36) * ((100vw - 300px) / (1600 - 300))); }
h2, .banner h1, .cta h2 { font-size: calc(28px + (32 - 28) * ((100vw - 300px) / (1600 - 300))); text-transform: none; }
h3 { font-size: calc(18px + (20 - 18) * ((100vw - 300px) / (1600 - 300))); font-weight: 700; }
h4 { font-size: calc(16px + (17 - 16) * ((100vw - 300px) / (1600 - 300))); text-transform: uppercase; font-weight: 600; }
strong { font-weight: 700; }
.text-white { color: var(--cream); }
.text-white p, .text-white h1, .text-white h2, .text-white h3, .text-white h4, .text-white a { color: var(--cream); }
.lead { font-size: calc(22px + (24 - 22) * ((100vw - 300px) / (1600 - 300))); color: var(--navy); font-weight: 400; }

/* IMAGES */
img { max-width: 100%; height: auto; }
.two-col img { border-radius: 30px; }
.circle { border-radius: 100%; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.size-full { width: 100%; }
svg { overflow: hidden; }
.aligncenter, .alignleft { margin-left: auto; margin-right: auto; display: block;  }
@media (min-width: 992px) { .alignleft { float: left; margin-right: 30px; margin-bottom: 30px; } }

/* GENERAL */
.wrapper { width: 100%; position: relative; }
.blue { background-color: var(--navy); }
.light-blue { background-color: var(--sand); }
.right { text-align: center; }
@media (min-width: 1400px) { .right { text-align: right; } }
.left { text-align: center; }
@media (min-width: 1400px) { .left { text-align: left; }  }
hr { margin: 6vh 0; color: var(--taupe); opacity: 0.6; }
.accordion-button { font-weight: 500; }
.accordion-button:not(.collapsed) { background-color: var(--sand); color: var(--navy); font-weight: 700; }
.accordion-button:focus { box-shadow: none; }
blockquote { background: var(--taupe); color: var(--ink); padding: 40px 10%; border-radius: 30px; position: relative; margin-bottom: 20px; }
blockquote p { color: var(--ink); font-family: var(--font-heading); font-size: calc(24px + (28 - 24) * ((100vw - 300px) / (1600 - 300))); font-weight: 600; }
blockquote cite { font-style: normal; }
blockquote::after { content: ""; display: block; width: 0; height: 0; border-left: 20px solid transparent; border-right: 20px solid transparent; border-top: 20px solid var(--taupe); margin: auto; position: absolute; bottom: -20px; right: 60px; }
.table { margin-bottom: 4vh; }
.search-filter-field { margin-bottom: 20px; }

/* HEADER */
.logo { width: 250px; }
@media (min-width: 1400px) { .logo { width: 300px; } }
@media (max-width: 575px) { .logo { width: 180px; } }
.breadcrumbs { text-transform: uppercase; font-size: 14px; letter-spacing: 1px; opacity: 0.5; }
.sep { margin: 0 10px; }

/* NAVBAR */
.navbar { padding: 0; }
.navbar-light .navbar-nav .nav-link, .dropdown-item { color: var(--navy); font-weight: 600; }
.navbar-light .navbar-nav .nav-link { padding: 17px 15px; }
.navbar-light .navbar-nav .menu-btn .nav-link { background: var(--terra-dark); color: #fff; border-radius: 100px; padding: 15px 25px; margin-left: 10px; font-weight: 700; }
.navbar-light .navbar-nav .menu-btn .nav-link:hover { background: var(--navy); color: #fff; }
@media (min-width: 1400px) {
	.menu .navbar-light .navbar-nav .nav-link { margin-right: 5px; }
	.menu .navbar-light .navbar-nav .active .nav-link { background: var(--navy)!important; color: var(--cream); border-radius: 10px 10px 0 0; padding-left: 20px!important; padding-right: 20px!important; }
	.menu .navbar-light .navbar-nav .nav-link:hover { background: var(--sand); border-radius: 10px 10px 0 0; }
}
.dropdown-menu { background: var(--cream); border: 0; border-radius: 16px; padding: 8px; box-shadow: var(--shadow-dropdown); }
.dropdown-item { border-radius: 10px; padding: 10px 16px; }
.dropdown-item.active, .dropdown-item:active, .dropdown-item:hover { background: var(--sand); color: var(--navy); }
.navbar-toggler { display: inline-flex; align-items: center; gap: 12px; box-shadow: none!important; border-color: var(--navy); border-width: 2px; color: var(--navy); background: transparent; border-radius: 100px; padding: 10px 20px; font-family: var(--font-heading); font-weight: 600; font-size: 16px; letter-spacing: 0.04em; line-height: 1; }
.navbar-toggler:hover { background: var(--sand); }
@media (max-width: 575px) { .navbar-toggler { padding: 9px 16px; } }
.toggler-bars { position: relative; display: block; width: 22px; height: 16px; }
.toggler-bars span { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform 250ms ease, opacity 150ms ease, top 250ms ease; }
.toggler-bars span:nth-child(1) { top: 0; }
.toggler-bars span:nth-child(2) { top: 7px; }
.toggler-bars span:nth-child(3) { top: 14px; }
.navbar-toggler[aria-expanded="true"] { background: var(--navy); color: var(--cream); }
.navbar-toggler[aria-expanded="true"] .toggler-bars span:nth-child(1) { top: 7px; transform: rotate(45deg); }
.navbar-toggler[aria-expanded="true"] .toggler-bars span:nth-child(2) { opacity: 0; }
.navbar-toggler[aria-expanded="true"] .toggler-bars span:nth-child(3) { top: 7px; transform: rotate(-45deg); }
@media (prefers-reduced-motion: reduce) { .toggler-bars span { transition: none; } }
#menu-mobile { margin-top: 20px; }
#mobileNavbar .navbar-nav { background: #fff; border-radius: var(--radius-card); padding: 10px; box-shadow: var(--shadow-sm); }
#mobileNavbar .nav-link { padding: 14px 20px; border-radius: 12px; }
#mobileNavbar .nav-link:hover, #mobileNavbar .active .nav-link { background: var(--sand); }
#mobileNavbar .active .nav-link { font-weight: 700; }
#mobileNavbar .menu-btn .nav-link { margin: 8px 0 4px; text-align: center; background: var(--terra-dark); color: #fff; border-radius: 100px; }
#mobileNavbar .menu-btn .nav-link:hover { background: var(--navy); }

/* NAV */
.nav { background-color: var(--sand); border-radius: 10px; padding-top: 10px; padding-bottom: 10px; }
.nav .nav-link { color: var(--navy); }
.nav .nav-link:hover { font-weight: 700; }

/* FOOTER */
.cta { background: var(--navy); border-radius: 20px; padding: 40px; }
.cta h2 { margin-bottom: 20px; }
.cta .btn { margin-top: 5px; }
@media (min-width: 1400px) {
	.cta h2 { margin-bottom: 0; }
	.cta .btn { margin-left: 8px; margin-top: 0; }
}
.newsletter:after { content: ""; display: block; width: 100%; height: 200px; background: url('assets/wave-footer.svg') no-repeat center bottom; background-size: cover; }
.footer p { font-size: 14px; }
.footer img { width: 140px; max-width: 100%; box-sizing: border-box; padding: 12px; background: #fff; border-radius: 12px; box-shadow: 0 2px 10px rgba(31,51,72,0.15); }
.footer .right .row { --bs-gutter-x: 0; margin: 0; gap: 16px; justify-content: center; }
.footer .right .row > .col { flex: 0 0 auto; width: auto; padding: 0; }
@media (min-width: 1400px) { .footer .right .row { justify-content: flex-end; } }

/* BLOCKS */
.banner { padding: 8vh 0; }
.banner-image { width: 100%; height: 400px; background-size: cover; background-repeat: no-repeat; background-position: center center; }
@media (min-width: 992px) {
	.banner { padding: 12vh 0; }
	.banner:after, .page-title:after { content: ""; display: block; width: 100%; height: 50px; background: url('assets/hero-wave-v2.svg') no-repeat center bottom; background-size: cover; position: absolute; bottom: 0; }
	.banner-image { width: 47.5vw; height: 100%; position: absolute; top: 0; right: 0; background-size: cover; background-repeat: no-repeat; background-position: center center; }
}
.service-box, .link-box { text-decoration: none; transition: 300ms ease all; height: 100%; display: block; border-radius: 30px; }
.service-box:hover { transform: scale(1.05); }
.service-box img { border-radius: 20px 20px 0 0; }
.service-box .inner { padding: 40px; border-radius: 0 0 20px 20px; }
.link-box .inner, .doc-link, .directory-filters { background: #fff; border-radius: var(--radius-card); box-shadow: var(--shadow-sm); }
.link-box .inner, .doc-link { height: 100%; display: block; padding: 40px; }
.doc-link { text-decoration: none; }
.link-box .inner:hover, .doc-link:hover { box-shadow: var(--shadow-sm-hover); }
.link-box:hover h3, .doc-link:hover h3 { color: var(--terra-dark); }
.link-box i, .doc-link i { font-size: 32px; margin-bottom: 1rem; }
.two-col-wave:after { content: ""; display: block; width: 100%; height: 50px; background: url('assets/sand-wave-bottom-v2.svg') no-repeat center bottom; background-size: cover; }
.two-col-wave:before { content: ""; display: block; width: 100%; height: 50px; background: url('assets/sand-wave-top-v2.svg') no-repeat center bottom; background-size: cover; }
.supervisor, .book { border-top: solid 1px var(--taupe); padding-top: 4vh; }
.team .image { width: 100%; margin-bottom: 30px; text-align: center; }
.highlight { padding: 60px; border-radius: 20px; }
.contact-details { margin: 0 0 1.25rem 0; padding: 0; }
.contact-details li { margin: 0; padding: 0; list-style: none; }
.contact-details a { text-decoration: none; }
.contact-details i { width: 25px; }

/* FORMS */
.gfield_required { color: var(--terra-dark)!important; }
input, textarea, input:focus, textarea:focus, select { border-radius: 30px!important; border-color: var(--field-border)!important; }
.newsletter input[type="text"], .newsletter input[type="tel"], .newsletter input[type="email"], .newsletter textarea { padding: 13px 25px!important; background: var(--slate)!important; border-color: var(--slate)!important; color: #fff!important; }
.newsletter ::placeholder { color: #fff; }
.gform-theme--framework:where(:not(.gform_editor)) .gfield--type-section { border-block-end: solid 1px var(--terra)!important; }
.gform-theme--framework .gfield_list_group_item::before:where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)), .gform-theme--framework .gform-field-label:where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)) { font-size: calc(16px + (17 - 16) * ((100vw - 300px) / (1600 - 300)))!important; }
.search-filter-label { font-weight: 700; }

/* BUTTONS */
.btn { padding: 15px 25px!important; border-radius: 100px!important; font-weight: 700!important; font-size: calc(16px + (17 - 16) * ((100vw - 300px) / (1600 - 300)))!important; }
.btn i { margin-left: 5px; }
.btn-primary { background-color: var(--terra-dark)!important; border-color: var(--terra-dark)!important; color: #fff!important; }
.btn-primary:hover { background-color: var(--navy)!important; border-color: var(--navy)!important; }
.btn-secondary { background-color: var(--navy)!important; border-color: var(--navy)!important; color: #fff!important; }
.btn-secondary:hover { background-color: var(--terra-dark)!important; border-color: var(--terra-dark)!important; }
.btn-outline-dark { color: var(--navy)!important; border-color: var(--navy)!important; }
.btn-outline-dark:hover { background-color: var(--navy)!important; color: #fff!important; }
.btn-outline-light { color: var(--cream)!important; border-color: var(--cream)!important; }
.btn-outline-light:hover { background-color: var(--cream)!important; color: var(--navy)!important; }
.cta .btn-primary, .newsletter .btn-primary, .banner .btn-primary, .page-title .btn-primary { background-color: var(--terra-light)!important; border-color: var(--terra-light)!important; color: var(--ink)!important; }
.cta .btn-primary:hover, .newsletter .btn-primary:hover, .banner .btn-primary:hover, .page-title .btn-primary:hover { background-color: var(--cream)!important; border-color: var(--cream)!important; color: var(--navy)!important; }
.newsletter .btn-secondary, .banner .btn-secondary, .page-title .btn-secondary { background-color: var(--cream)!important; border-color: var(--cream)!important; color: var(--navy)!important; }
.newsletter .btn-secondary:hover, .banner .btn-secondary:hover, .page-title .btn-secondary:hover { background-color: var(--terra-light)!important; border-color: var(--terra-light)!important; color: var(--ink)!important; }
.btn:focus-visible, a:focus-visible, .nav-link:focus-visible, .navbar-toggler:focus-visible { outline: 3px solid var(--terra-dark); outline-offset: 3px; }
.cta .btn:focus-visible, .newsletter .btn:focus-visible, .blue a:focus-visible { outline-color: var(--cream); }

/* ACCORDION */
.accordion { --bs-accordion-btn-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23996047' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M8 2v12M2 8h12'/%3E%3C/svg%3E"); --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%232F4F6F' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M2 8h12'/%3E%3C/svg%3E"); --bs-accordion-btn-icon-width: 1rem; --bs-accordion-btn-icon-transform: none; --bs-accordion-bg: #fff; }
.accordion-item, .accordion-item:first-of-type, .accordion-item:last-of-type { border: 0; border-radius: var(--radius-card); margin-bottom: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }
.accordion-item .accordion-button { border-radius: 0; padding: 20px 25px; gap: 20px; font-weight: 600; color: var(--navy); background: #fff; }
.accordion-item .accordion-button:not(.collapsed) { background: var(--sand); box-shadow: none; }
.accordion-item .accordion-button:focus-visible { outline: 3px solid var(--terra-dark); outline-offset: -3px; }
.accordion-body { padding: 20px 25px 25px; }

/* DIRECTORY LISTINGS */
.directory-filters { padding: 30px; }
.directory-filter-group { border: 0; padding: 0; margin: 0 0 25px; }
.directory-filter-group:last-of-type { margin-bottom: 0; }
.directory-filter-group label, .directory-filter-group legend { display: block; font-weight: 700; margin-bottom: 10px; padding: 0; }
.directory-filter-group input[type="search"] { width: 100%; border: 1px solid var(--field-border); border-radius: 30px!important; padding: 10px 20px; }
.directory-filter-group .form-check { margin-bottom: 6px; }
.directory-filter-group .form-check-input { border-color: var(--field-border); }
.directory-filter-group .form-check-input:checked { background-color: var(--navy); border-color: var(--navy); }
.directory-filter-group .form-check-input:focus { border-color: var(--navy); box-shadow: 0 0 0 0.25rem rgba(47,79,111,0.25); }
.directory-filter-actions { margin-top: 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.directory-filter-actions .btn { width: 100%; text-align: center; }
.directory-filter-actions a { font-size: 14px; }
.directory-filters.js-auto-submit .directory-filter-actions .btn { display: none; }
.directory-filters[aria-busy="true"] { opacity: 0.6; pointer-events: none; }
.directory-results .supervisor:first-child { border-top: 0; padding-top: 0; }
.directory-pagination ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 4vh 0 0; }
.directory-pagination a, .directory-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 14px; border-radius: 100px; text-decoration: none; font-weight: 700; color: var(--navy); background: #fff; box-shadow: var(--shadow-sm); }
.directory-pagination a:hover { background: var(--sand); }
.directory-pagination span.current { background: var(--navy); color: #fff; box-shadow: none; }
.directory-pagination span.dots { box-shadow: none; background: none; }

/* SKIP LINK */
.skip-link { position: absolute; top: -60px; left: 10px; z-index: 2000; background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 0 0 10px 10px; text-decoration: none; font-weight: 700; transition: top 150ms ease; }
.skip-link:focus { top: 0; color: #fff; }

/* ERROR PAGE */
.error-page { text-align: center; }
.error-code { font-family: var(--font-heading); font-weight: 600; color: var(--terra-dark); font-size: calc(72px + (120 - 72) * ((100vw - 300px) / (1600 - 300))); line-height: 1; margin-bottom: 0.5rem; }
