/*
Theme Name: Dr Dave
Theme URI: https://www.onlinemarketingsurgery.co.uk/
Author: Online Marketing Surgery Ltd
Author URI: https://www.onlinemarketingsurgery.co.uk/
Description: Custom ACF flexible content theme for Dr Dave, digital marketing remedies. Built from the OMS Dr Dave XD design. Colours, company details and tracking are configured under Theme Settings.
Version: 2.0.0
Requires at least: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: drdave
*/

/* =========================================================================
   Design scale
   -------------------------------------------------------------------------
   The XD artboard is 1920px wide. Every measurement in the design is written
   as calc(N * var(--u)) where --u is one design pixel. At 1920px and above
   --u is exactly 1px, so the build matches the artboard pixel for pixel; on
   narrower desktop viewports everything scales proportionally. Below the
   tablet breakpoint the layout restacks and --u is no longer used for text.
   ========================================================================= */
:root {
    --u: min(1px, calc(100vw / 1920));
    --gutter: 20px;

    --font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

    /* Colour tokens are written to :root by Theme Settings; these are the design values. */
    --c-primary: #00aeef;
    --c-primary-dark: #003e55;
    --c-on-primary: #ffffff;
    --c-accent: #eef000;
    --c-accent-dark: #d4d600;
    --c-on-accent: #003e55;
    --c-highlight: #8e4d9e;
    --c-on-highlight: #ffffff;
    --c-ink: #003e55;
    --c-body: #707070;
    --c-muted: #707070;
    --c-surface: #ffffff;
    --c-surface-alt: #ededed;
    --c-border: #d8dce1;
    --c-border-strong: #707070;
    --c-footer-bg: #084e72;
    --c-footer-text: #ffffff;
    --c-focus: #003e55;

    /* Type scale, with floors so proportional scaling never produces unreadable text. */
    --fs-h1: max(30px, calc(55 * var(--u)));
    --fs-h2: max(26px, calc(40 * var(--u)));
    --fs-h2-lg: max(28px, calc(45 * var(--u)));
    --fs-sub: max(19px, calc(30 * var(--u)));
    --fs-card: max(18px, calc(25 * var(--u)));
    --fs-body: max(16px, calc(22 * var(--u)));
    --fs-body-lg: max(18px, calc(30 * var(--u)));
    --fs-nav: max(16px, calc(28 * var(--u)));
    --fs-btn: max(15px, calc(22 * var(--u)));
    --fs-btn-sm: max(14px, calc(19 * var(--u)));
    --fs-badge: max(16px, calc(28 * var(--u)));

    --radius-btn: calc(54 * var(--u));
    --shadow-btn: 0 calc(3 * var(--u)) calc(3 * var(--u)) rgba(0, 0, 0, 0.16);
    --shadow-card: 0 calc(8 * var(--u)) calc(3 * var(--u)) rgba(0, 0, 0, 0.16);
    --line-w: calc(19 * var(--u));
}

/* =========================================================================
   Reset and base
   ========================================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

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

body {
    margin: 0;
    font-family: var(--font);
    font-weight: 300;
    font-size: var(--fs-body);
    line-height: 1.5;
    color: var(--c-body);
    background: var(--c-surface);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img,
svg,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

svg {
    fill: currentColor;
}

a {
    color: var(--c-primary-dark);
}

a:hover {
    text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: 600;
    line-height: 1.15;
    color: var(--c-ink);
}

p {
    margin: 0 0 1em;
}

ul, ol {
    margin: 0 0 1em;
    padding-left: 1.25em;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

:focus-visible {
    outline: 3px solid var(--c-focus);
    outline-offset: 3px;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 1000;
    padding: 12px 20px;
    background: var(--c-primary-dark);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
}

.skip-link:focus {
    top: 16px;
}

.site {
    position: relative;
    overflow: clip;
}

/* =========================================================================
   Layout
   ========================================================================= */
.container {
    width: 100%;
    max-width: calc(1464 * var(--u) + 2 * var(--gutter));
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.container--narrow {
    max-width: calc(1100 * var(--u) + 2 * var(--gutter));
}

.section {
    position: relative;
}

.site-main {
    position: relative;
}

/* =========================================================================
   Typography
   ========================================================================= */
.split-heading {
    font-size: var(--fs-h2);
    line-height: calc(41 * var(--u));
    font-weight: 500;
    color: var(--c-ink);
    margin: 0;
}

.split-heading strong,
.split-heading b {
    font-weight: 700;
    color: var(--split-bold, var(--c-primary));
}

.split-heading--stack strong {
    display: block;
}

.split-heading--light {
    color: #fff;
}

.sub-heading {
    font-size: var(--fs-sub);
    line-height: calc(33 * var(--u));
    font-weight: 600;
    color: var(--c-primary);
    margin: 0;
}

.lead {
    font-size: var(--fs-body);
    line-height: calc(33 * var(--u));
    font-weight: 300;
    color: var(--c-body);
}

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

.rich-text p,
.rich-text ul,
.rich-text ol {
    margin: 0 0 1.3em;
}

.rich-text > :last-child {
    margin-bottom: 0;
}

.rich-text strong {
    font-weight: 600;
}

.rich-text a {
    color: var(--c-primary);
    text-decoration: underline;
}

.rich-text h2,
.rich-text h3,
.rich-text h4 {
    margin: 1.4em 0 0.6em;
}

.rich-text h2 {
    font-size: var(--fs-h2);
}

.rich-text h3 {
    font-size: var(--fs-sub);
}

.rich-text h4 {
    font-size: var(--fs-card);
}

/* =========================================================================
   Buttons
   ========================================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    min-height: calc(69 * var(--u));
    padding: calc(17 * var(--u)) calc(37 * var(--u));
    border: 0;
    border-radius: var(--radius-btn);
    background: var(--c-accent);
    color: var(--c-on-accent);
    font-family: var(--font);
    font-size: var(--fs-btn);
    font-weight: 600;
    line-height: calc(35 * var(--u));
    text-align: center;
    text-decoration: none;
    box-shadow: var(--shadow-btn);
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.btn:hover,
.btn:focus-visible {
    background: var(--c-accent-dark);
    color: var(--c-on-accent);
    transform: translateY(-2px);
    box-shadow: 0 calc(6 * var(--u)) calc(8 * var(--u)) rgba(0, 0, 0, 0.18);
}

.btn:active {
    transform: translateY(0);
}

.btn--small {
    font-size: var(--fs-btn-sm);
    padding: calc(17 * var(--u)) calc(36 * var(--u));
}

.btn--navy {
    background: var(--c-primary-dark);
    color: #fff;
}

.btn--navy:hover,
.btn--navy:focus-visible {
    background: #002b3b;
    color: #fff;
}

.btn--cyan {
    background: var(--c-primary);
    color: #fff;
}

.btn--cyan:hover,
.btn--cyan:focus-visible {
    background: #0097d1;
    color: #fff;
}

.btn--outline {
    background: transparent;
    color: var(--c-primary-dark);
    box-shadow: inset 0 0 0 2px currentColor;
}

.btn--outline:hover,
.btn--outline:focus-visible {
    background: var(--c-primary-dark);
    color: #fff;
}

/* Legacy class names used by older blocks. */
.btn-primary,
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: calc(69 * var(--u));
    padding: calc(17 * var(--u)) calc(37 * var(--u));
    border: 0;
    border-radius: var(--radius-btn);
    background: var(--c-accent);
    color: var(--c-on-accent);
    font-size: var(--fs-btn);
    font-weight: 600;
    line-height: calc(35 * var(--u));
    text-decoration: none;
    box-shadow: var(--shadow-btn);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover,
.cta-button:hover {
    background: var(--c-accent-dark);
    color: var(--c-on-accent);
    transform: translateY(-2px);
}

/* =========================================================================
   Shared block primitives
   ========================================================================= */

/* Decorative connector lines, drawn as SVG in design pixels and scaled with --u. */
.connector {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    overflow: visible;
    fill: none;
    stroke-width: 19;
    stroke-linecap: butt;
}

.connector--under {
    z-index: 0;
}

.connector--yellow {
    stroke: var(--c-accent);
}

.connector--cyan {
    stroke: var(--c-primary);
}

.connector--purple {
    stroke: var(--c-highlight);
}

.connector .node {
    stroke: none;
}

.connector .node--cyan {
    fill: var(--c-primary);
}

.connector .node--purple {
    fill: var(--c-highlight);
}

.connector .node--ring-yellow {
    fill: #fff;
    stroke: var(--c-accent);
    stroke-width: 14;
}

.connector .node--ring-cyan {
    fill: var(--c-highlight);
    stroke: var(--c-primary);
    stroke-width: 14;
}

/* Faint pill pattern (14% white) used across coloured panels. */
.pattern-pills {
    position: absolute;
    left: 0;
    right: 0;
    pointer-events: none;
    opacity: 0.143;
    background-image: url('images/patterns/pills.svg');
    background-repeat: repeat-x;
    background-size: calc(1926 * var(--u)) auto;
    background-position: calc(-6 * var(--u)) 0;
}

/* Yellow circular badge with rotated text. */
.badge-circle {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(237 * var(--u));
    height: calc(237 * var(--u));
    border-radius: 50%;
    background: var(--c-accent);
    color: var(--c-ink);
    box-shadow: var(--shadow-btn);
    text-align: center;
    text-decoration: none;
    z-index: 3;
}

.badge-circle__text {
    display: block;
    width: calc(200 * var(--u));
    font-size: var(--fs-badge);
    line-height: calc(38 * var(--u));
    font-weight: 500;
    transform: rotate(-12deg);
}

.badge-circle__text strong {
    font-weight: 600;
}

a.badge-circle {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.badge-circle:hover,
a.badge-circle:focus-visible {
    transform: scale(1.04);
    box-shadow: 0 calc(6 * var(--u)) calc(8 * var(--u)) rgba(0, 0, 0, 0.2);
}

/* Click-to-play video with poster. */
.dd-video {
    position: relative;
    overflow: hidden;
    background: var(--c-primary-dark);
}

.dd-video__poster,
.dd-video video,
.dd-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
}

.dd-video__play {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    z-index: 2;
}

.dd-video__play svg {
    width: calc(72 * var(--u));
    height: auto;
    color: #fff;
    filter: drop-shadow(0 calc(3 * var(--u)) calc(4 * var(--u)) rgba(0, 0, 0, 0.25));
    transition: transform 0.2s ease;
}

.dd-video__play:hover svg,
.dd-video__play:focus-visible svg {
    transform: scale(1.08);
}

.dd-video__play:focus-visible {
    outline-offset: -4px;
}

.dd-video--tinted::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--c-primary);
    opacity: 0.23;
    z-index: 1;
    pointer-events: none;
}

.dd-video.is-playing::before,
.dd-video.is-playing .dd-video__play,
.dd-video.is-playing .dd-video__poster {
    display: none;
}

/* =========================================================================
   Top bar and header
   ========================================================================= */
.top-bar {
    position: relative;
    z-index: 30;
    background: var(--c-accent);
    color: var(--c-ink);
}

.top-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: calc(40 * var(--u));
    min-height: calc(94 * var(--u));
    padding: 0 calc(186 * var(--u)) 0 calc(229 * var(--u));
}

.top-bar__tagline {
    margin: 0;
    font-size: var(--fs-body-lg);
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.top-bar__right {
    display: flex;
    align-items: center;
    gap: calc(73 * var(--u));
}

.top-bar__phone {
    display: inline-flex;
    align-items: center;
    gap: calc(17 * var(--u));
    color: var(--c-ink);
    font-size: max(18px, calc(35 * var(--u)));
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.top-bar__phone svg {
    width: calc(36 * var(--u));
    height: calc(36 * var(--u));
    flex: none;
}

.top-bar__phone:hover {
    text-decoration: underline;
}

.social-icons {
    display: flex;
    align-items: center;
    gap: calc(26 * var(--u));
    margin: 0;
    padding: 0;
    list-style: none;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(45 * var(--u));
    height: calc(45 * var(--u));
    min-width: 24px;
    min-height: 24px;
    color: var(--c-ink);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-icons svg {
    width: 100%;
    height: 100%;
}

.social-icons a:hover,
.social-icons a:focus-visible {
    transform: translateY(-2px);
}

.site-header {
    position: relative;
    z-index: 20;
    background: var(--c-primary);
    color: #fff;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: calc(40 * var(--u));
    min-height: calc(141 * var(--u));
    padding: 0 calc(190 * var(--u)) 0 calc(229 * var(--u));
}

.site-header--no-logo .site-header__inner {
    justify-content: flex-end;
}

.site-branding {
    display: flex;
    align-items: center;
    margin: 0;
}

.site-branding a {
    display: block;
    padding: calc(14 * var(--u)) calc(24 * var(--u));
    background: #fff;
    border-radius: calc(20 * var(--u));
    line-height: 0;
}

.site-branding img {
    width: auto;
    height: var(--logo-h, 72px);
    max-height: calc(100 * var(--u));
}

.main-navigation {
    display: block;
}

.main-navigation ul {
    display: flex;
    align-items: center;
    gap: calc(51 * var(--u));
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    padding: 0.5em 0;
    color: #fff;
    font-size: var(--fs-nav);
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.main-navigation a:hover,
.main-navigation a:focus-visible {
    color: var(--c-accent);
}

.main-navigation .current-menu-item > a,
.main-navigation .current-menu-ancestor > a {
    color: #fff;
}

.main-navigation .dropdown-arrow svg {
    width: 0.6em;
    height: 0.6em;
}

.main-navigation .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 50;
    min-width: calc(260 * var(--u));
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: calc(12 * var(--u)) 0;
    background: var(--c-primary-dark);
    border-radius: 0 0 calc(16 * var(--u)) calc(16 * var(--u));
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.main-navigation li:hover > .sub-menu,
.main-navigation li.submenu-open > .sub-menu,
.main-navigation li.submenu-focus > .sub-menu {
    display: flex;
}

.main-navigation .sub-menu a {
    padding: calc(10 * var(--u)) calc(24 * var(--u));
    font-size: max(15px, calc(20 * var(--u)));
    white-space: normal;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 48px;
    height: 48px;
    padding: 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #fff;
}

.mobile-menu-toggle .toggle-bar {
    display: block;
    width: 28px;
    height: 3px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-menu-toggle.active .toggle-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active .toggle-bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .toggle-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-navigation-wrapper {
    position: fixed;
    top: 0;
    right: -100%;
    z-index: 999;
    width: min(380px, 88vw);
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    background: var(--c-primary-dark);
    color: #fff;
    visibility: hidden;
    opacity: 0;
    transition: right 0.3s ease, opacity 0.3s ease, visibility 0.3s;
}

.mobile-navigation-wrapper.active {
    right: 0;
    visibility: visible;
    opacity: 1;
}

.mobile-nav-inner {
    padding: 24px 16px 40px;
}

.mobile-menu-logo {
    margin-bottom: 24px;
}

.mobile-menu-logo a {
    display: inline-block;
    padding: 12px 16px;
    background: #fff;
    border-radius: 14px;
    line-height: 0;
}

.mobile-menu-logo img {
    height: 56px;
    width: auto;
}

.mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu li {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.mobile-menu li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 4px;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
}

.mobile-menu .menu-item-has-children > a {
    padding-right: 56px;
}

.mobile-menu .menu-item-has-children {
    position: relative;
}

.mobile-menu .submenu-toggle {
    position: absolute;
    top: 6px;
    right: 0;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 24px;
    line-height: 1;
}

.mobile-menu .dropdown-arrow {
    display: none;
}

.mobile-menu .sub-menu {
    max-height: 0;
    overflow: hidden;
    padding-left: 16px;
    transition: max-height 0.3s ease;
}

.mobile-menu .sub-menu a {
    font-size: 17px;
    font-weight: 500;
}

.mobile-contact-info {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.mobile-contact-item a {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--c-accent);
    font-weight: 600;
    text-decoration: none;
}

.mobile-social-links {
    gap: 16px;
    margin-top: 16px;
}

.mobile-social-links a {
    width: 36px;
    height: 36px;
    color: var(--c-accent);
}

body.mobile-menu-open {
    overflow: hidden;
}

body.mobile-menu-open::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 998;
    background: rgba(0, 0, 0, 0.45);
}

/* Site notice banner */
.top-warning-banner {
    position: relative;
    z-index: 31;
    padding: 10px 0;
    font-size: 15px;
}

.top-warning-banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 20px;
    text-align: center;
}

.warning-cta-button {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
}

/* =========================================================================
   Inner page hero (pages without the Dr Dave hero block)
   ========================================================================= */
.page-hero {
    position: relative;
    overflow: hidden;
    background: var(--c-primary-dark);
    color: #fff;
}

.page-hero__media,
.page-hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-size: cover;
    background-position: center;
}

.page-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 62, 85, 0.92) 0%, rgba(0, 62, 85, 0.6) 60%, rgba(0, 62, 85, 0.35) 100%);
}

.page-hero__inner {
    position: relative;
    z-index: 2;
    padding: calc(110 * var(--u)) 0 calc(120 * var(--u));
}

.page-hero h1 {
    max-width: calc(900 * var(--u));
    font-size: var(--fs-h1);
    line-height: 1.1;
    font-weight: 700;
    color: #fff;
}

.page-hero h1 strong {
    color: var(--c-accent);
}

.page-hero__subtitle {
    max-width: calc(760 * var(--u));
    margin-top: calc(24 * var(--u));
    font-size: var(--fs-body-lg);
    font-weight: 500;
    line-height: 1.3;
}

.page-hero__subtitle p:last-child {
    margin-bottom: 0;
}

.page-hero .btn {
    margin-top: calc(36 * var(--u));
}

.page-hero__video-toggle {
    position: absolute;
    right: 20px;
    bottom: 20px;
    z-index: 3;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
}

.page-hero__video-toggle::before {
    content: '';
    display: block;
    width: 14px;
    height: 14px;
    margin: 0 auto;
    background: currentColor;
    clip-path: polygon(0 0, 35% 0, 35% 100%, 0 100%, 0 0, 65% 0, 100% 0, 100% 100%, 65% 100%, 65% 0);
}

.page-hero__video-toggle[data-state='paused']::before {
    clip-path: polygon(15% 0, 100% 50%, 15% 100%);
}

.page-hero--connector .connector {
    right: calc(186 * var(--u));
    bottom: 0;
}

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer {
    position: relative;
    background: linear-gradient(180deg, #000000 0%, var(--c-footer-bg) 100%);
    color: var(--c-footer-text);
    text-align: center;
}

.site-footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: calc(387 * var(--u));
    padding: calc(50 * var(--u)) var(--gutter) calc(40 * var(--u));
}

.site-footer__logo {
    display: block;
    width: calc(168 * var(--u));
    min-width: 120px;
    line-height: 0;
}

.site-footer__logo img,
.site-footer__logo svg {
    width: 100%;
    height: auto;
}

.site-footer .social-icons {
    gap: calc(28 * var(--u));
    margin-top: calc(36 * var(--u));
}

.site-footer .social-icons a {
    width: calc(36 * var(--u));
    height: calc(36 * var(--u));
    min-width: 30px;
    min-height: 30px;
    padding: 18%;
    border-radius: 50%;
    background: #ffe900;
    color: #003857;
}

.site-footer__contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4em calc(60 * var(--u));
    margin: calc(34 * var(--u)) 0 0;
    font-size: var(--fs-body);
    font-weight: 300;
    line-height: 1.3;
}

.site-footer__contact a {
    color: inherit;
    text-decoration: none;
}

.site-footer__contact a:hover {
    text-decoration: underline;
}

.site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4em calc(48 * var(--u));
    margin: calc(35 * var(--u)) 0 0;
    padding: 0;
    list-style: none;
    font-size: var(--fs-body);
    font-weight: 600;
    line-height: 1.3;
}

.site-footer__legal a {
    color: var(--c-accent);
    text-decoration: none;
}

.site-footer__legal a:hover {
    text-decoration: underline;
}

.site-footer__meta {
    margin: calc(24 * var(--u)) 0 0;
    font-size: max(13px, calc(16 * var(--u)));
    opacity: 0.8;
}

.site-footer__meta span + span::before {
    content: '\00a0\00b7\00a0';
}

.site-footer__strip {
    height: calc(29 * var(--u));
    background: var(--c-primary);
}

/* =========================================================================
   Scroll to top
   ========================================================================= */
.scroll-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 90;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: var(--c-primary-dark);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top svg {
    width: 22px;
    height: 22px;
    fill: none;
}

/* =========================================================================
   Forms (Gravity Forms and core)
   ========================================================================= */
.site .dd-form .gform_wrapper.gravity-theme .gform_fields,
.site .dd-form .gform_wrapper .gform_fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: calc(134 * var(--u));
    row-gap: calc(49 * var(--u));
    margin: 0;
    padding: 0;
    list-style: none;
}

.site .dd-form .gform_wrapper .gfield {
    grid-column: span 1;
    margin: 0;
    padding: 0;
}

.site .dd-form .gform_wrapper .gfield--width-full,
.site .dd-form .gform_wrapper .gfield.gsection,
.site .dd-form .gform_wrapper .gfield--type-textarea,
.site .dd-form .gform_wrapper .gfield--type-html,
.site .dd-form .gform_wrapper .gfield--type-consent,
.site .dd-form .gform_wrapper .gfield--type-captcha,
.site .dd-form .gform_wrapper .gfield.full-width {
    grid-column: 1 / -1;
}

.site .dd-form .gform_wrapper .gfield_label,
.site .dd-form .gform_wrapper legend.gfield_label,
.site .dd-form label {
    display: block;
    margin: 0 0 calc(18 * var(--u));
    font-size: var(--fs-body);
    font-weight: 600;
    line-height: 1.3;
    color: #fff;
}

.site .dd-form .gform_wrapper .gfield_required,
.site .dd-form .gform_wrapper .gfield_required_asterisk {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    padding-left: 0;
}

/* The asterisk is self-explanatory next to each label; keep the legend for screen readers only. */
.site .dd-form .gform_wrapper .gform_required_legend {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.site .dd-form .gform_wrapper .gfield_required_text,
.site .dd-form .gform_wrapper .gfield_required_asterisk {
    color: inherit;
}

.site .dd-form .gform_wrapper input:not([type='radio']):not([type='checkbox']):not([type='submit']):not([type='button']):not([type='file']),
.site .dd-form .gform_wrapper select,
.site .dd-form .gform_wrapper textarea,
.site .dd-form input[type='text'],
.site .dd-form input[type='email'],
.site .dd-form input[type='tel'],
.site .dd-form textarea {
    width: 100%;
    min-height: calc(77 * var(--u));
    padding: calc(20 * var(--u)) calc(32 * var(--u));
    border: 2px solid transparent;
    border-radius: calc(39 * var(--u));
    background: #fff;
    color: var(--c-ink);
    font-size: var(--fs-body);
    font-weight: 500;
    line-height: 1.3;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
}

.site .dd-form .gform_wrapper textarea {
    min-height: calc(180 * var(--u));
    border-radius: calc(30 * var(--u));
    resize: vertical;
}

.site .dd-form .gform_wrapper input:focus,
.site .dd-form .gform_wrapper select:focus,
.site .dd-form .gform_wrapper textarea:focus {
    outline: 3px solid var(--c-primary-dark);
    outline-offset: 2px;
}

.site .dd-form .gform_wrapper .gfield_description,
.site .dd-form .gform_wrapper .gfield_validation_message,
.site .dd-form .gform_wrapper .validation_message {
    margin-top: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: max(14px, calc(18 * var(--u)));
}

.site .dd-form .gform_wrapper .gform_validation_errors {
    margin: 0 0 calc(30 * var(--u));
    padding: 16px 24px;
    border: 2px solid #fff;
    border-radius: calc(20 * var(--u));
    background: rgba(0, 62, 85, 0.25);
    color: #fff;
    box-shadow: none;
}

.site .dd-form .gform_wrapper .gform_validation_errors h2 {
    color: #fff;
    font-size: var(--fs-body);
}

.site .dd-form .gform_wrapper .gform_footer {
    display: flex;
    justify-content: center;
    margin: calc(72 * var(--u)) 0 0;
    padding: 0;
}

.site .dd-form .gform_wrapper .gform_footer input[type='submit'],
.site .dd-form .gform_wrapper .gform_footer button,
.site .dd-form .gform_wrapper .gform_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-height: calc(69 * var(--u));
    margin: 0;
    padding: calc(17 * var(--u)) calc(37 * var(--u));
    border: 0;
    border-radius: var(--radius-btn);
    background: var(--c-accent);
    color: var(--c-on-accent);
    font-family: var(--font);
    font-size: var(--fs-btn);
    font-weight: 600;
    line-height: calc(35 * var(--u));
    box-shadow: var(--shadow-btn);
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.site .dd-form .gform_wrapper .gform_footer input[type='submit']:hover,
.site .dd-form .gform_wrapper .gform_footer button:hover,
.site .dd-form .gform_wrapper .gform_button:hover {
    background: var(--c-accent-dark);
    transform: translateY(-2px);
}

.site .dd-form .gform_wrapper .gform_confirmation_message {
    padding: calc(30 * var(--u));
    border-radius: calc(30 * var(--u));
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: var(--fs-body-lg);
    font-weight: 500;
    text-align: center;
}

.site .dd-form .gform_wrapper .gfield_checkbox label,
.site .dd-form .gform_wrapper .gfield_radio label,
.site .dd-form .gform_wrapper .gfield_consent_label {
    display: inline;
    margin: 0 0 0 8px;
    font-weight: 500;
}

.site .dd-form .gform_wrapper input[type='checkbox'],
.site .dd-form .gform_wrapper input[type='radio'] {
    width: 22px;
    height: 22px;
    accent-color: var(--c-primary-dark);
}

/* Default (light) context for forms inside plain pages. */
.site .dd-form--light .gform_wrapper .gfield_label,
.site .dd-form--light label,
.site .dd-form--light .gform_wrapper .gfield_description {
    color: var(--c-ink);
}

.site .dd-form--light .gform_wrapper input:not([type='radio']):not([type='checkbox']):not([type='submit']):not([type='button']):not([type='file']),
.site .dd-form--light .gform_wrapper select,
.site .dd-form--light .gform_wrapper textarea {
    border-color: var(--c-border-strong);
}

.search-form {
    display: flex;
    gap: 8px;
    max-width: 520px;
}

.search-form .search-field {
    flex: 1;
    min-height: 52px;
    padding: 10px 22px;
    border: 2px solid var(--c-border-strong);
    border-radius: 999px;
    background: #fff;
    font-size: 16px;
}

.search-form .search-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    min-height: 52px;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    background: var(--c-primary-dark);
    color: #fff;
    font-weight: 600;
}

.search-form .search-submit img {
    width: 20px;
    height: 20px;
}

/* =========================================================================
   Plain page content, listings, search and 404
   ========================================================================= */
.page-content,
.archive-header,
.single-entry__header .container,
.search-header,
.error-404,
.no-results {
    padding-top: calc(80 * var(--u));
    padding-bottom: calc(80 * var(--u));
}

.page-content .entry-title,
.archive-header .page-title,
.single-entry__title,
.search-title,
.error-404 .page-title,
.no-results .page-title {
    margin-bottom: 0.5em;
    font-size: var(--fs-h2);
    line-height: 1.15;
    font-weight: 700;
    color: var(--c-ink);
}

.entry-content {
    max-width: calc(980 * var(--u));
}

.entry-content > * {
    margin: 0 0 1.3em;
}

.entry-content h2 {
    font-size: var(--fs-h2);
    margin-top: 1.4em;
}

.entry-content h3 {
    font-size: var(--fs-sub);
    margin-top: 1.2em;
}

.entry-content a {
    color: var(--c-primary);
}

.entry-content img {
    border-radius: calc(29 * var(--u));
}

.single-entry__header {
    background: var(--c-surface-alt);
}

.single-entry__summary {
    max-width: calc(900 * var(--u));
    font-size: var(--fs-body-lg);
    font-weight: 500;
    color: var(--c-primary);
}

.single-entry__meta {
    font-size: max(14px, calc(18 * var(--u)));
    font-weight: 500;
}

.single-entry__media .container {
    padding-top: calc(40 * var(--u));
}

.single-entry__media img {
    width: 100%;
    border-radius: calc(29 * var(--u));
}

.single-entry__content .container {
    padding-top: calc(50 * var(--u));
    padding-bottom: calc(80 * var(--u));
}

.single-entry__cta {
    background: var(--c-primary-dark);
    color: #fff;
}

.single-entry__cta .container {
    padding: calc(60 * var(--u)) var(--gutter);
    text-align: center;
}

.single-entry__cta h2 {
    margin-bottom: 0.6em;
    color: #fff;
    font-size: var(--fs-h2);
}

.single-entry__cta p {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px 32px;
    margin: 0;
}

.single-entry__cta a:not(.btn) {
    color: var(--c-accent);
    font-weight: 600;
}

.post-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: calc(40 * var(--u));
    padding-bottom: calc(80 * var(--u));
}

.content-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: calc(29 * var(--u));
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 62, 85, 0.12);
}

.content-card__media img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.content-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: calc(30 * var(--u));
}

.content-card__title {
    margin-bottom: 0.4em;
    font-size: var(--fs-card);
}

.content-card__title a {
    color: var(--c-ink);
    text-decoration: none;
}

.content-card__title a:hover {
    color: var(--c-primary);
}

.content-card__meta {
    font-size: max(13px, calc(16 * var(--u)));
    font-weight: 500;
}

.content-card__excerpt {
    flex: 1;
}

.content-card__link {
    align-self: flex-start;
    margin-top: 1em;
    color: var(--c-primary);
    font-weight: 600;
    text-decoration: none;
}

.content-card__link:hover {
    text-decoration: underline;
}

.pagination,
.navigation.pagination {
    padding: 0 var(--gutter) calc(80 * var(--u));
    text-align: center;
}

.pagination .nav-links {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--c-surface-alt);
    color: var(--c-ink);
    font-weight: 600;
    text-decoration: none;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: var(--c-primary-dark);
    color: #fff;
}

.pagination .page-numbers svg {
    width: 16px;
    height: 16px;
}

.search-count {
    font-weight: 500;
}

.search-results-list {
    margin: 0 0 calc(60 * var(--u));
    padding: 0;
    list-style: none;
}

.search-result {
    padding: calc(28 * var(--u)) 0;
    border-top: 1px solid var(--c-border);
}

.search-result__inner {
    display: flex;
    gap: calc(30 * var(--u));
    align-items: flex-start;
}

.search-result__media {
    flex: none;
    width: calc(200 * var(--u));
    min-width: 96px;
    overflow: hidden;
    border-radius: calc(20 * var(--u));
    background: var(--c-surface-alt);
}

.search-result__media--icon {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 10;
    color: var(--c-primary);
}

.search-result__media--icon svg {
    width: 40%;
    height: auto;
}

.search-result__title {
    margin: 4px 0 8px;
    font-size: var(--fs-card);
}

.search-result__title a {
    color: var(--c-ink);
    text-decoration: none;
}

.search-result__title a:hover {
    color: var(--c-primary);
}

.badge {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 999px;
    background: var(--c-accent);
    color: var(--c-ink);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.search-result__link {
    color: var(--c-primary);
    font-weight: 600;
    text-decoration: none;
}

.search-suggestions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: calc(40 * var(--u));
    margin-top: calc(40 * var(--u));
}

.search-suggestion h3 {
    margin-bottom: 0.5em;
    font-size: var(--fs-card);
}

.search-suggestion ul {
    list-style: none;
    padding: 0;
}

.search-suggestion a {
    color: var(--c-primary);
    font-weight: 500;
}

.error-404 .search-form {
    margin: calc(30 * var(--u)) 0;
}

.error-404-links ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    list-style: none;
    padding: 0;
}

.error-404-links a {
    color: var(--c-primary);
    font-weight: 600;
}

/* =========================================================================
   Responsive: tablet and below restack
   ========================================================================= */
@media (max-width: 1024px) {
    :root {
        --gutter: 16px;
        --fs-h1: 32px;
        --fs-h2: 28px;
        --fs-h2-lg: 30px;
        --fs-sub: 20px;
        --fs-card: 19px;
        --fs-body: 16px;
        --fs-body-lg: 19px;
        --fs-nav: 18px;
        --fs-btn: 16px;
        --fs-btn-sm: 15px;
        --fs-badge: 17px;
        --radius-btn: 999px;
        --shadow-btn: 0 3px 3px rgba(0, 0, 0, 0.16);
        --shadow-card: 0 8px 12px rgba(0, 0, 0, 0.16);
    }

    .container {
        max-width: 100%;
    }

    .split-heading,
    .sub-heading,
    .lead {
        line-height: 1.25;
    }

    .lead {
        line-height: 1.5;
    }

    .btn,
    .btn-primary,
    .cta-button,
    .site .dd-form .gform_wrapper .gform_footer input[type='submit'],
    .site .dd-form .gform_wrapper .gform_footer button,
    .site .dd-form .gform_wrapper .gform_button {
        min-height: 54px;
        padding: 12px 28px;
        line-height: 1.4;
    }

    .connector {
        display: none;
    }

    .pattern-pills {
        background-size: 1200px auto;
    }

    .badge-circle {
        position: relative;
        width: 170px;
        height: 170px;
    }

    .badge-circle__text {
        width: 140px;
        line-height: 1.3;
    }

    .top-bar__inner {
        min-height: 0;
        padding: 10px var(--gutter);
        gap: 12px;
    }

    .top-bar__tagline {
        font-size: 14px;
        white-space: normal;
    }

    .top-bar__right {
        gap: 20px;
    }

    .top-bar__phone {
        font-size: 18px;
        gap: 8px;
    }

    .top-bar__phone svg {
        width: 22px;
        height: 22px;
    }

    .top-bar .social-icons {
        display: none;
    }

    .site-header__inner {
        min-height: 72px;
        padding: 8px var(--gutter);
    }

    .site-header--no-logo .site-header__inner {
        justify-content: flex-end;
    }

    .site-branding a {
        padding: 8px 12px;
        border-radius: 12px;
    }

    .site-branding img {
        height: var(--logo-h, 44px);
        max-height: 56px;
    }

    .main-navigation {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .page-hero__inner {
        padding: 56px 0 64px;
    }

    .site-footer__inner {
        min-height: 0;
        padding: 40px var(--gutter) 32px;
    }

    .site-footer .social-icons {
        gap: 18px;
        margin-top: 28px;
    }

    .site-footer .social-icons a {
        width: 40px;
        height: 40px;
    }

    .site-footer__contact {
        margin-top: 26px;
        gap: 6px 28px;
    }

    .site-footer__legal {
        margin-top: 22px;
        gap: 6px 28px;
    }

    .site-footer__strip {
        height: 14px;
    }

    .site .dd-form .gform_wrapper .gform_fields {
        grid-template-columns: 1fr;
        column-gap: 24px;
        row-gap: 22px;
    }

    .site .dd-form .gform_wrapper .gfield_label,
    .site .dd-form label {
        margin-bottom: 8px;
    }

    .site .dd-form .gform_wrapper input:not([type='radio']):not([type='checkbox']):not([type='submit']):not([type='button']):not([type='file']),
    .site .dd-form .gform_wrapper select,
    .site .dd-form .gform_wrapper textarea {
        min-height: 56px;
        padding: 14px 22px;
        border-radius: 999px;
    }

    .site .dd-form .gform_wrapper textarea {
        border-radius: 24px;
    }

    .site .dd-form .gform_wrapper .gform_footer {
        margin-top: 32px;
    }

    .page-content,
    .archive-header,
    .single-entry__header .container,
    .search-header,
    .error-404,
    .no-results {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .post-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
        padding-bottom: 48px;
    }

    .content-card {
        border-radius: 20px;
    }

    .content-card__body {
        padding: 20px;
    }

    .search-result__inner {
        gap: 16px;
    }
}

@media (max-width: 640px) {
    .top-bar__tagline {
        display: none;
    }

    .top-bar__inner {
        justify-content: center;
    }

    .post-list {
        grid-template-columns: 1fr;
    }

    .search-result__inner {
        flex-direction: column;
    }

    .search-result__media {
        width: 100%;
    }
}
