/*
Theme Name: Holly Dental Custom
Author: The Creative Composite
Description: Custom theme for Holly Dental Practice with flexible page sections and global settings.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: holly-dental
Update URI: false
*/

:root {
    --hd-ink:#333;
    --hd-paper:#f9f6f4;
    --hd-width:1200px;
}

* {
    box-sizing:border-box;
}

body {
    margin:0;
    background:var(--hd-paper);
    color:var(--hd-ink);
    font-family:Arial,sans-serif;
    line-height:1.6;
}

a {
    color:inherit;
}

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

.hd-container {
    width:min(var(--hd-width),calc(100% - 40px));
    margin-inline:auto;
}

.hd-header,
.hd-header-inner {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
    flex-wrap:wrap;
}

.custom-logo {
    max-width:200px;
    max-height:90px;
    width:auto;
}

.hd-menu {
    display:flex;
    gap:24px;
    flex-wrap:wrap;
    list-style:none;
    padding:0;
}

.hd-menu .sub-menu {
    padding-left:20px;
}

.hd-section {
    padding:64px 0;
}

.hd-content {
    max-width:800px;
}

h1,
h2 {
    line-height:1.15;
}

h1 {
    font-size:clamp(2rem,5vw,4rem);
}

h2 {
    font-size:clamp(1.6rem,3vw,2.5rem);
}

.hd-split {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:40px;
    align-items:center;
}

.hd-button {
    display:inline-block;
    background:var(--hd-ink);
    color:white;
    padding:12px 24px;
    text-decoration:none;
}

.skip-link {
    position:absolute;
    left:-10000px;
}

.skip-link:focus {
    left:20px;
    top:10px;
    z-index:100;
    background:white;
    padding:12px;
}

:focus-visible {
    outline:3px solid #805c25;
    outline-offset:4px;
}

@media(max-width:767px) {
    .hd-split {
        grid-template-columns:1fr;
    }

    .hd-section {
        padding:40px 0;
    }
}

/* Global settings */

.hd-brand {
    display:inline-block;
    flex-shrink:0;
}

.hd-logo {
    display:block;
    width:var(--logo-width,180px);
    height:auto;
}

.hd-header {
    background:var(--hd-paper);
}

.hd-is-sticky {
    position:sticky;
    top:0;
    z-index:100;
}

.admin-bar .hd-is-sticky {
    top:32px;
}

.hd-header-nav {
    flex:1;
}

.hd-header-actions {
    display:flex;
    align-items:center;
    gap:18px;
}

.hd-menu-toggle {
    display:none;
    font:inherit;
    padding:8px 16px;
    background:transparent;
    border:1px solid currentColor;
}

@media(min-width:1101px) {
    .hd-header-nav .menu-item-has-children {
        position:relative;
    }

    .hd-header-nav .sub-menu {
        display:none;
        position:absolute;
        top:100%;
        left:0;
        min-width:220px;
        list-style:none;
        padding:16px;
        background:var(--hd-paper);
        box-shadow:0 8px 24px #0002;
        z-index:101;
    }

    .hd-header-nav li:not(.hd-mega):hover>.sub-menu,
    .hd-header-nav li:not(.hd-mega):focus-within>.sub-menu {
        display:block;
    }

    .hd-header-nav .sub-menu .sub-menu {
        left:100%;
        top:0;
    }
}

@media(max-width:900px) {
    .hd-js .hd-menu-toggle {
        display:block;
        margin-left:auto;
    }

    .hd-header-nav {
        flex-basis:100%;
        order:3;
    }

    .hd-js .hd-header-nav {
        display:none;
    }

    .hd-js .hd-header-nav.is-open {
        display:block;
    }

    .hd-header-nav .hd-menu {
        display:block;
    }

    .hd-header-nav li {
        padding:6px 0;
    }

    .hd-header-actions {
        flex-basis:100%;
        justify-content:space-between;
    }

    .hd-header-inner {
        gap:16px;
    }
}

@media(max-width:782px) {
    .admin-bar .hd-is-sticky {
        top:46px;
    }
}

@media(max-width:600px) {
    .admin-bar .hd-is-sticky {
        top:0;
    }
}

/* Header */

:root {
    --hd-paper:#f3f1ec;
    --hd-ink:#222525;
}

.hd-header {
    padding:8px 0;
    border:0;
}

.hd-header-inner {
    width:100%;
    max-width:1400px;
    padding:20px 32px;
    min-height:96px;
    display:grid;
    grid-template-columns:auto 1fr auto;
    gap:32px;
    position:relative;
}

.hd-header .hd-logo {
    max-height:76px;
    object-fit:contain;
}

.hd-header-nav .hd-menu {
    justify-content:center;
    align-items:center;
    gap:28px;
    margin:0;
}

.hd-header-nav a {
    text-decoration:none;
    font-size:11.2px;
    letter-spacing:.14em;
    text-transform:uppercase;
    color:#333d38;
}

.hd-header-nav a:hover,
.hd-header-nav .current-menu-item>a {
    color:#63745b;
}

.hd-header-actions {
    gap:24px;
    white-space:nowrap;
}

.hd-header-actions>a:not(.hd-button) {
    font-size:12px;
    text-decoration:none;
    letter-spacing:.03em;
}

.hd-header-actions>a:not(.hd-button)::before {
    content:'☎';
    margin-right:8px;
}

.hd-header .hd-button {
    background:#1f2f29;
    color:#f3f1ec;
    border-radius:6px;
    font-size:10.4px;
    letter-spacing:.16em;
    text-transform:uppercase;
    padding:14px 24px;
    transition:background .2s;
}

.hd-header .hd-button:hover {
    background:#50604d;
}

.hd-header-nav .sub-menu {
    border:1px solid #dedfd7;
    border-radius:6px;
    padding:20px;
    min-width:230px;
}

.hd-header-nav .sub-menu a {
    font-size:12px;
    letter-spacing:.02em;
    text-transform:none;
    display:block;
    padding:7px 0;
}

.hd-drawer-heading,
.hd-drawer-actions,
.hd-menu-backdrop {
    display:none;
}

.hd-menu-backdrop[hidden] {
    display:none!important;
}

@media(min-width:1101px) {
    .hd-header .hd-menu-toggle {
        display:none;
    }

    .hd-header-nav {
        display:block!important;
    }

    .hd-header-nav .menu-item-has-children:not(.hd-mega)>a::after {
        content:'⌄';
        margin-left:6px;
    }
}

@media(max-width:1100px) {
    .hd-header-inner {
        display:flex;
        flex-wrap:nowrap;
        justify-content:space-between;
        min-height:88px;
        padding:16px 24px;
        gap:16px;
    }

    .hd-header .hd-logo {
        max-width:160px;
        max-height:60px;
    }

    .hd-header-actions {
        margin-left:auto;
        flex-basis:auto;
    }

    .hd-header-actions .hd-button {
        display:none;
    }

    .hd-js .hd-menu-toggle {
        display:block;
        order:4;
        margin:0;
        width:40px;
        height:40px;
        padding:0;
        border:1px solid #d9ddd5;
        border-radius:6px;
        font-size:22px;
    }

    .hd-header-nav {
        flex-basis:auto;
    }

    .hd-js .hd-header-nav {
        display:block;
        position:fixed;
        top:0;
        bottom:0;
        left:0;
        width:80%;
        max-width:340px;
        background:#f3f1ec;
        z-index:1002;
        overflow-y:auto;
        padding:24px;
        transform:translateX(-105%);
        visibility:hidden;
        transition:transform .25s,visibility .25s;
        box-shadow:12px 0 40px #0002;
    }

    .hd-js .hd-header-nav.is-open {
        transform:translateX(0);
        visibility:visible;
    }

    .hd-header-nav .hd-menu {
        display:block;
    }

    .hd-header-nav .hd-menu>li {
        padding:16px 0;
        border-bottom:1px solid #dedfd7;
    }

    .hd-header-nav .sub-menu {
        display:block;
        position:static;
        border:0;
        box-shadow:none;
        padding:8px 0 0 16px;
        list-style:none;
        min-width:0;
        background:transparent;
    }

    .hd-header-nav .sub-menu .sub-menu {
        position:static;
    }

    .hd-drawer-heading {
        display:flex;
        align-items:center;
        justify-content:space-between;
        gap:12px;
        margin-bottom:20px;
    }

    .hd-menu-close {
        border:1px solid #d9ddd5;
        background:transparent;
        border-radius:6px;
        min-width:36px;
        height:36px;
        font-size:26px;
    }

    .hd-drawer-actions {
        display:flex;
        flex-direction:column;
        gap:20px;
        margin-top:24px;
    }

    .hd-drawer-actions .hd-button {
        text-align:center;
        color:#f3f1ec;
    }

    .hd-js .hd-menu-backdrop:not([hidden]) {
        display:block;
        position:fixed;
        inset:0;
        border:0;
        background:#0006;
        z-index:1001;
        width:100%;
        height:100%;
    }

    .hd-menu-open {
        overflow:hidden;
    }

    .admin-bar .hd-header-nav {
        top:32px;
    }

    .hd-is-sticky {
        z-index:1000;
    }

    html:not(.hd-js) .hd-header-inner {
        flex-wrap:wrap;
    }

    html:not(.hd-js) .hd-header-nav {
        flex-basis:100%;
    }
}

@media(max-width:782px) {
    .admin-bar .hd-header-nav {
        top:46px;
    }
}

@media(max-width:600px) {
    .hd-header-inner {
        padding:12px 16px;
    }

    .hd-header-actions {
        display:none;
    }

    .hd-js .hd-menu-toggle {
        margin-left:auto;
    }
}

@media(prefers-reduced-motion:reduce) {
    .hd-header-nav,
    .hd-header .hd-button {
        transition:none!important;
    }
}

/* Header layout */

@font-face {
    font-family:Satoshi;
    src:url('assets/fonts/satoshi-regular.woff2') format('woff2');
    font-weight:400;
    font-style:normal;
    font-display:swap;
}

.hd-header {
    font-family:Satoshi,Arial,sans-serif;
    padding:8px 0;
    background:#f3f1ec;
    color:#232c23;
}

.hd-header-inner {
    display:flex;
    justify-content:center;
    position:relative;
    max-width:1400px;
    width:100%;
    padding:20px 32px;
    min-height:0;
    gap:0;
}

.hd-header-inner>.hd-brand {
    position:absolute;
    left:32px;
    top:50%;
    transform:translateY(-50%);
}

.hd-header .hd-logo {
    width:var(--logo-width,180px);
    max-width:none;
    max-height:none;
    height:auto;
}

.hd-header-nav {
    flex:0 1 auto;
}

.hd-header-nav .hd-menu {
    gap:32px;
    line-height:1.5;
    list-style:none;
    padding:0;
    margin:0;
}

.hd-header-nav a {
    font-family:Satoshi,Arial,sans-serif;
    font-weight:400;
    color:#232c23;
    font-size:11.2px;
    letter-spacing:.14em;
    line-height:1.5;
}

.hd-header-actions {
    position:absolute;
    right:32px;
    top:50%;
    transform:translateY(-50%);
    gap:24px;
    margin:0;
}

.hd-phone-link {
    display:inline-flex;
    align-items:center;
    gap:8px;
}

.hd-phone-link svg {
    flex-shrink:0;
    width:14px;
    height:14px;
}

.hd-header-actions>a:not(.hd-button)::before {
    content:none;
}

.hd-header-actions>a:not(.hd-button) {
    font-size:12px;
    line-height:1.5;
    letter-spacing:.025em;
    color:#232c23;
}

.hd-header .hd-button {
    font-family:Satoshi,Arial,sans-serif;
    font-weight:400;
    font-size:10.4px;
    line-height:1.5;
    letter-spacing:.16em;
    padding:14px 24px;
    border-radius:6px;
    background:#1f2f29;
    color:#f3f1ec;
}

@media(min-width:1101px) {
    .hd-header-nav .current-menu-item>a {
        color:#232c23;
    }
}

@media(max-width:1100px) {
    .hd-header-inner {
        min-height:56px;
        padding:8px 32px;
        justify-content:flex-end;
        gap:24px;
    }

    .hd-header-actions {
        position:static;
        transform:none;
        margin:0;
    }

    .hd-header-inner>.hd-brand {
        left:32px;
    }

    .hd-header .hd-logo {
        max-width:180px;
    }

    .hd-header .hd-menu-toggle {
        flex-shrink:0;
    }

    .hd-js .hd-header-nav {
        flex:none;
    }

    .hd-header-nav .hd-menu>li {
        padding:16px 0;
    }

    .hd-header-nav .hd-menu {
        line-height:1.5;
    }

    .hd-drawer-actions .hd-phone-link {
        align-self:flex-start;
    }
}

@media(max-width:767px) {
    .hd-header-actions {
        display:none;
    }
}

@media(max-width:639px) {
    .hd-header-inner {
        padding-inline:16px;
    }

    .hd-header-inner>.hd-brand {
        left:16px;
    }

    .hd-header .hd-logo {
        max-width:150px;
    }
}

/* Typography and sections */

@font-face {
    font-family:'Cormorant Garamond';
    src:url('assets/fonts/cormorant-regular.ttf') format('truetype');
    font-weight:400;
    font-style:normal;
    font-display:swap;
}

@font-face {
    font-family:'Cormorant Garamond';
    src:url('assets/fonts/cormorant-italic.ttf') format('truetype');
    font-weight:400;
    font-style:italic;
    font-display:swap;
}

:root {
    --hd-width:1400px;
    --hd-accent:#60765c;
}

body {
    font-family:Satoshi,Arial,sans-serif;
}

h1,
h2,
h3 {
    font-family:'Cormorant Garamond',Georgia,serif;
    font-weight:400;
}

.hd-container {
    width:100%;
    max-width:1400px;
    padding-inline:32px;
    margin-inline:auto;
}

.hd-content {
    max-width:800px;
}

.hd-hero-grid {
    display:grid;
    grid-template-columns:.85fr 1.15fr;
    align-items:center;
    gap:56px;
    padding-top:8px;
    padding-bottom:32px;
}

.hd-hero-copy {
    border-bottom:1px solid #dcded5;
    padding-bottom:32px;
    text-align:left;
}

.hd-eyebrow {
    margin:0;
    font-size:11px;
    line-height:1.5;
    letter-spacing:.18em;
    text-transform:uppercase;
    color:#767c72;
}

.hd-hero h1 {
    margin:20px 0 0;
    font-size:60px;
    line-height:1.05;
    letter-spacing:-.025em;
    color:#232c23;
}

.hd-hero h1 em {
    display:block;
    color:var(--hd-accent);
    font-weight:400;
}

.hd-hero-description {
    margin-top:24px;
    max-width:384px;
    font-size:14px;
    line-height:1.625;
    color:#767c72;
}

.hd-hero-description p {
    margin:0 0 12px;
}

.hd-hero-description p:last-child {
    margin-bottom:0;
}

.hd-hero-buttons {
    display:flex;
    flex-wrap:wrap;
    gap:16px;
    margin-top:32px;
}

.hd-hero .hd-button {
    font-family:Satoshi,Arial,sans-serif;
    display:inline-block;
    border:1px solid transparent;
    border-radius:6px;
    padding:16px 32px;
    font-size:10.4px;
    line-height:1.5;
    letter-spacing:.16em;
    text-transform:uppercase;
    text-align:center;
    text-decoration:none;
    background:#1f2f29;
    color:#f3f1ec;
}

.hd-hero .hd-secondary-button .hd-button {
    background:transparent;
    color:#232c23;
    border-color:#dcded5;
}

.hd-hero .hd-button:hover {
    background:#50604d;
    color:#fff;
}

.hd-hero-media {
    position:relative;
    min-width:0;
}

.hd-hero-image {
    display:block;
    width:100%;
    height:420px;
    object-fit:cover;
    mask-image:linear-gradient(to right,transparent 0%,black 18%,black 100%);
    -webkit-mask-image:linear-gradient(to right,transparent 0%,black 18%,black 100%);
}

.hd-hero-video {
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    width:96px;
    height:96px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    border:1px solid #f3f1ecb3;
    background:#1f2f29b3;
    color:#f3f1ec;
    backdrop-filter:blur(4px);
    font-size:8px;
    line-height:1.5;
    letter-spacing:.2em;
    text-transform:uppercase;
    text-decoration:none;
}

.hd-hero-video svg {
    margin:4px 0;
}

.hd-hero-review {
    position:absolute;
    right:20px;
    bottom:20px;
    background:#ffffffdb;
    backdrop-filter:blur(12px);
    border:1px solid #ffffff80;
    border-radius:12px;
    padding:12px 20px;
    box-shadow:0 10px 15px -3px #0002;
}

.hd-hero-review p {
    margin:0;
    font-size:9.6px;
    line-height:1.5;
    color:#767c72;
}

.hd-hero-review p:last-child {
    margin-top:4px;
}

.hd-hero-review a {
    color:inherit;
    text-decoration:none;
}

.hd-rating {
    display:flex;
    align-items:center;
    gap:8px;
    margin-top:4px;
    font-size:18px;
    line-height:1;
}

.hd-stars {
    position:relative;
    display:inline-block;
    font-size:15px;
    letter-spacing:1px;
    color:#c9c8bf;
    line-height:1.2;
    white-space:nowrap;
}

.hd-stars-fill {
    position:absolute;
    inset:0 auto 0 0;
    overflow:hidden;
    color:#e5af35;
}

@media(max-width:1023px) {
    .hd-hero-grid {
        grid-template-columns:1fr;
        gap:40px;
    }

    .hd-hero-copy {
        text-align:center;
    }

    .hd-hero h1 {
        font-size:48px;
    }

    .hd-hero-description {
        margin-inline:auto;
    }

    .hd-hero-buttons {
        justify-content:center;
    }
}

@media(max-width:639px) {
    .hd-container {
        padding-inline:16px;
    }

    .hd-hero h1 {
        font-size:36px;
    }

    .hd-hero-buttons {
        flex-direction:column;
        align-items:stretch;
    }

    .hd-hero-buttons .hd-button {
        display:block;
        width:100%;
    }

    .hd-hero-image {
        height:420px;
        mask-image: none;
    }

    .hd-hero-review {
        max-width:calc(100% - 40px);
    }
}

.hd-button,
.hd-header .hd-button,
.hd-hero .hd-button,
.hd-hero-video {
    transition:background-color .2s ease,color .2s ease,border-color .2s ease;
}

.hd-hero .hd-secondary-button .hd-button:hover {
    background:#1f2f29;
    color:#f3f1ec;
    border-color:#1f2f29;
}

.hd-hero-video:hover {
    background:#1f2f29;
}

.hd-hero-video {
    font-family:inherit;
    cursor:pointer;
    padding:0;
}

.hd-video-dialog {
    position:fixed;
    inset:0;
    width:min(900px,calc(100% - 40px));
    max-width:900px;
    max-height:calc(100dvh - 48px);
    margin:auto;
    padding:0;
    border:1px solid #ffffff26;
    border-radius:16px;
    background:#171c19;
    color:#f3f1ec;
    box-shadow:0 30px 100px #0009;
    overflow:auto;
}

.hd-video-dialog::backdrop {
    background:#111914cc;
    backdrop-filter:blur(8px);
}

.hd-video-dialog[open] {
    animation:hd-modal-in .2s ease-out;
}

.hd-video-toolbar {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    padding:14px 20px;
}

.hd-video-toolbar h2 {
    font-family:Satoshi,Arial,sans-serif;
    font-size:13px;
    font-weight:400;
    letter-spacing:.1em;
    margin:0;
    text-transform:uppercase;
}

.hd-video-close {
    display:grid;
    place-items:center;
    min-width:36px;
    height:36px;
    border:1px solid #ffffff40;
    border-radius:50%;
    background:transparent;
    color:inherit;
    font-size:26px;
    cursor:pointer;
    line-height: 1;
}

.hd-video-close:hover {
    background:#ffffff20;
}

.hd-video-frame {
    aspect-ratio:4/2;
    background:#000;
}

.hd-video-frame iframe,
.hd-video-frame video {
    display:block;
    width:100%;
    height:100%;
    border:0;
}

.hd-video-frame p {
    padding:24px;
    margin:0;
    color:white;
}

.hd-video-open {
    overflow:hidden;
}

@keyframes hd-modal-in {
    from {
        opacity:0;
        transform:translateY(12px) scale(.98);
    }

    to {
        opacity:1;
        transform:none;
    }
}

@media(max-width:639px) {
    .hd-video-dialog {
        width:calc(100% - 24px);
        border-radius:12px;
    }

    .hd-video-toolbar {
        padding:10px 14px;
    }
}

@media(prefers-reduced-motion:reduce) {
    .hd-button,
    .hd-header .hd-button,
    .hd-hero .hd-button,
    .hd-hero-video {
        transition:none;
    }

    .hd-video-dialog[open] {
        animation:none;
    }
}

/* Mega navigation */

.hd-header-nav .hd-mega-trigger {
    display:inline-flex;
    align-items:center;
    gap:8px;
}

.hd-mega-chevron {
    width:5px;
    height:5px;
    border-right:1px solid currentColor;
    border-bottom:1px solid currentColor;
    transform:rotate(45deg);
    transition:transform 200ms ease;
}

.hd-mega.is-mega-open>a .hd-mega-chevron {
    transform:rotate(225deg);
}

.hd-mega-backbar {
    display:none;
}

.hd-header-nav .hd-mega.menu-item-has-children>a::after,
.hd-header-nav .hd-mega .menu-item-has-children>a::after {
    content:none;
    display:none;
}

@media(min-width:1101px) {
    .hd-header-inner {
        position:relative;
    }

    .hd-header-nav,
    .hd-header-nav .hd-menu,
    .hd-header-nav .hd-menu>.hd-mega {
        position:static;
    }

    .hd-header-nav .hd-menu>.hd-mega>.sub-menu {
        position:absolute;
        top:100%;
        left:50%;
        z-index:1100;
        display:grid;
        grid-template-columns:repeat(3,minmax(0,1fr));
        gap:40px;
        width:720px;
        max-width:calc(100vw - 64px);
        min-width:0;
        box-sizing:border-box;
        margin:0;
        padding:32px;
        border:1px solid #dedfd7;
        border-radius:6px;
        background:#fffefa;
        box-shadow:0 20px 40px rgb(0 0 0 / 15%);
        list-style:none;
        transform:translateX(-50%);
        opacity:0;
        visibility:hidden;
        pointer-events:none;
        transition:opacity 180ms ease,visibility 180ms ease;
    }

    .hd-header-nav .hd-menu>.hd-mega.is-mega-open>.sub-menu {
        opacity:1;
        visibility:visible;
        pointer-events:auto;
    }

    .hd-header-nav .hd-mega>.sub-menu>li {
        min-width:0;
        margin:0;
        padding:0;
        border:0;
    }

    .hd-header-nav .hd-mega>.sub-menu>li>a {
        display:block;
        margin:0 0 12px;
        padding:0 0 14px;
        border-bottom:1px solid #dedfd7;
        color:#60765c;
        font-family:var(--hd-font-heading,'Cormorant Garamond',Georgia,serif);
        font-size:17px;
        font-weight:400;
        line-height:1.4;
        letter-spacing:normal;
        text-transform:none;
    }

    .hd-header-nav .hd-mega>.sub-menu>li>.sub-menu {
        position:static;
        display:block;
        width:auto;
        min-width:0;
        margin:0;
        padding:0;
        border:0;
        border-radius:0;
        background:transparent;
        box-shadow:none;
        transform:none;
        opacity:1;
        visibility:visible;
        list-style:none;
    }

    .hd-header-nav .hd-mega>.sub-menu>li>.sub-menu a {
        display:block;
        padding:9px 0;
        color:#767c72;
        font-size:14px;
        line-height:1.3;
        letter-spacing:normal;
        text-transform:none;
        text-decoration:none;
        transition: .2s all ease-in-out;
    }
    .hd-header-nav .hd-mega>.sub-menu>li>.sub-menu a:hover {
        color: #232c23;
    }

    .hd-header-nav .hd-mega>.sub-menu a:hover {
        color:#232c23;
    }
}

@media(max-width:1100px) {
    .hd-header-nav .hd-menu>.hd-mega>a {
        display:flex;
        align-items:center;
        justify-content:space-between;
    }

    .hd-mega-chevron {
        transform:rotate(-45deg);
    }

    .hd-header-nav .hd-mega>.sub-menu {
        display:none;
    }

    .hd-header .hd-header-nav.hd-mega-screen .hd-drawer-heading,
    .hd-header .hd-header-nav.hd-mega-screen .hd-drawer-actions,
    .hd-header .hd-header-nav.hd-mega-screen .hd-menu>li:not(.hd-mega),
    .hd-header .hd-header-nav.hd-mega-screen .hd-mega>a {
        display:none;
    }

    .hd-header .hd-header-nav.hd-mega-screen .hd-mega-backbar {
        display:flex;
        flex-shrink:0;
        align-items:center;
        justify-content:space-between;
        gap:16px;
        min-height:64px;
        box-sizing:border-box;
        padding:16px 20px;
        border-bottom:1px solid #e1e0d9;
    }

    .hd-mega-back {
        display:inline-flex;
        align-items:center;
        gap:10px;
        padding:0;
        border:0;
        background:transparent;
        color:#767c72;
        font-size:10px;
        line-height:1.5;
        letter-spacing:.14em;
        text-transform:uppercase;
        cursor:pointer;
    }

    .hd-mega-back::before {
        content:"";
        width:5px;
        height:5px;
        border-left:1px solid currentColor;
        border-bottom:1px solid currentColor;
        transform:rotate(45deg);
    }

    .hd-header .hd-header-nav.hd-mega-screen .hd-menu {
        margin:0;
        padding:24px 20px 32px;
    }

    .hd-header .hd-header-nav.hd-mega-screen .hd-menu>.hd-mega {
        padding:0;
        border:0;
    }

    .hd-header .hd-header-nav.hd-mega-screen .hd-mega>.sub-menu {
        position:static;
        display:grid;
        gap:24px;
        width:auto;
        min-width:0;
        margin:0;
        padding:0;
        border:0;
        background:transparent;
        box-shadow:none;
        transform:none;
        visibility:visible;
        opacity:1;
        list-style:none;
    }

    .hd-header-nav .hd-mega>.sub-menu>li {
        margin:0;
        padding:0;
        border:0;
    }

    .hd-header-nav .hd-mega>.sub-menu>li>a {
        display:block;
        margin-bottom:6px;
        padding:0 0 8px;
        border-bottom:1px solid #e1e0d9;
        color:#60765c;
        font-family:var(--hd-font-heading,'Cormorant Garamond',Georgia,serif);
        font-size:14px;
        font-weight:400;
        line-height:1.4;
        letter-spacing:normal;
        text-transform:none;
    }

    .hd-header-nav .hd-mega>.sub-menu>li>.sub-menu {
        position:static;
        display:block;
        min-width:0;
        margin:0;
        padding:0;
        border:0;
        background:transparent;
        box-shadow:none;
        list-style:none;
    }

    .hd-header-nav .hd-mega>.sub-menu>li>.sub-menu a {
        display:block;
        padding:9px 0;
        color:#767c72;
        font-size:12px;
        line-height:1.5;
        letter-spacing:normal;
        text-transform:none;
    }
}

@media(prefers-reduced-motion:reduce) {
    .hd-mega-chevron,
    .hd-header-nav .hd-menu>.hd-mega>.sub-menu {
        transition:none;
    }
}

/* Header and Footer: Consolidated Overrides */

/* Global Containers */

.hd-footer__container {
    box-sizing: border-box;
    width: 100%;
    max-width: 1400px;
    margin-inline: auto;
    padding-inline: 16px;
}

/* Footer */

.hd-footer {
    padding: 40px 0 20px;
    border: 0;
    background: #222525;
    color: #f3f1ec;
}

.hd-footer__container {
    width: 100%;
    max-width: 1400px;
    margin-inline: auto;
    padding-inline: 32px;
    box-sizing: border-box;
}

.hd-footer__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 40px;
}

.hd-footer__brand {
    padding-top: 16px;
}

.hd-footer__home {
    display: inline-block;
    width: var(--footer-logo-width, 180px);
    max-width: 100%;
    color: inherit;
    text-decoration: none;
}

.hd-footer__logo {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

.hd-footer__brand-name {
    font-size: 22px;
    line-height: 1.3;
}

.hd-footer__column {
    min-width: 0;
}

.hd-footer__heading {
    margin: 0 0 16px;
    color: #fff;
    font-family: inherit;
    font-size: 10.4px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hd-footer__menu,
.hd-footer__socials,
.hd-footer__legal {
    margin: 0;
    padding: 0;
    list-style: none;
}

.hd-footer__menu {
    display: grid;
    gap: 8px;
}

.hd-footer__menu li,
.hd-footer__socials li,
.hd-footer__legal li {
    margin: 0;
    padding: 0;
}

.hd-footer__menu a,
.hd-footer__details {
    color: rgb(243 241 236 / 80%);
    font-size: 11.2px;
    font-weight: 400;
    line-height: 1.5;
}

.hd-footer a {
    text-decoration: none;
    transition: color 200ms ease;
}

.hd-footer a:hover {
    color: #fff;
    text-decoration: none;
}

.hd-footer a:focus-visible {
    outline: 2px solid #aeb7a8;
    outline-offset: 4px;
}

.hd-footer__details {
    display: grid;
    gap: 8px;
}

.hd-footer__details p,
.hd-footer__details address {
    margin: 0;
}

.hd-footer__details address {
    font-style: normal;
    line-height: 2.2;
}

.hd-footer__details a {
    color: inherit;
    overflow-wrap: anywhere;
}

.hd-footer__socials {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.hd-footer__socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: rgb(243 241 236 / 85%);
}

.hd-footer__socials svg {
    display: block;
    width: 16px;
    height: 16px;
}

.hd-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 24px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgb(255 255 255 / 10%);
    color: rgb(243 241 236 / 70%);
    text-align: center;
}

.hd-footer__copyright {
    margin: 0;
    font-size: 10px;
    line-height: 1.6;
}

.hd-footer__legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    row-gap: 8px;
}

.hd-footer__legal li + li {
    margin-left: 24px;
    padding-left: 24px;
    border-left: 1px solid rgb(243 241 236 / 45%);
}

.hd-footer__legal a {
    display: block;
    color: inherit;
    font-size: 10px;
    line-height: 1.2;
}

/* Mobile and Tablet */

@media (max-width: 1100px) {
    .hd-js .hd-header-nav {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 1002;
        display: flex;
        flex-direction: column;
        width: 80%;
        max-width: 320px;
        height: 100dvh;
        box-sizing: border-box;
        padding: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        background: #f3f1ec;
        color: #232c23;
        box-shadow: none;
        transform: translateX(-100%);
        visibility: hidden;
        pointer-events: none;
        transition: none;
    }

    .hd-js.hd-menu-ready .hd-header-nav {
        transition:
            transform 250ms ease,
            visibility 250ms ease;
    }

    .hd-js .hd-header-nav.is-open {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
    }

    .hd-header-nav .hd-drawer-heading {
        display: flex;
        flex-shrink: 0;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        min-height: 112px;
        margin: 0;
        padding: 24px;
        border-bottom: 1px solid #e1e0d9;
    }

    .hd-drawer-heading .hd-brand {
        display: block;
        width: 136px;
        max-width: calc(100% - 52px);
    }

    .hd-header .hd-drawer-heading .hd-logo {
        display: block;
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: 64px;
        object-fit: contain;
    }

    .hd-header-nav .hd-menu-close {
        display: inline-flex;
        flex: 0 0 32px;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        min-height: 0;
        padding: 0;
        border: 1px solid #dedfd7;
        border-radius: 5px;
        background: transparent;
        color: #232c23;
        line-height: 1;
        cursor: pointer;
    }

    .hd-header-nav .hd-menu {
        display: block;
        flex-shrink: 0;
        margin: 20px 20px 0;
        padding: 0;
        list-style: none;
    }

    .hd-header-nav .hd-menu > li {
        margin: 0;
        padding: 0;
        border-bottom: 1px solid #e1e0d9;
    }

    .hd-header-nav .hd-menu > li > a {
        display: block;
        padding: 16px 0;
        color: #767c72;
        font-size: 10px;
        font-weight: 400;
        line-height: 1.5;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        text-decoration: none;
    }

    .hd-header-nav .hd-menu > li > a:hover {
        color: #232c23;
    }

    .hd-header-nav .hd-drawer-actions {
        display: flex;
        flex-shrink: 0;
        flex-direction: column;
        gap: 18px;
        margin: 0;
        padding: 20px 20px 32px;
    }

    .hd-drawer-actions .hd-phone-link {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        color: #767c72;
        font-size: 11px;
        line-height: 1.5;
        letter-spacing: normal;
        text-decoration: none;
    }

    .hd-drawer-actions .hd-phone-link svg {
        width: 14px;
        height: 14px;
    }

    .hd-header .hd-drawer-actions .hd-button {
        display: block;
        width: 100%;
        box-sizing: border-box;
        padding: 14px 12px;
        border: 1px solid transparent;
        border-radius: 5px;
        background: #1f2f29;
        color: #f3f1ec;
        font-size: 10px;
        line-height: 1.5;
        letter-spacing: 0.06em;
        text-align: center;
        text-transform: uppercase;
        text-decoration: none;
    }

    .hd-header .hd-drawer-actions .hd-button:hover {
        background: #50604d;
    }

    .hd-js .hd-menu-backdrop:not([hidden]) {
        position: fixed;
        inset: 0;
        z-index: 1001;
        display: block;
        width: 100%;
        height: 100dvh;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: rgb(0 0 0 / 40%);
    }
}

@media (max-width: 1023px) {
    .hd-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px;
    }
}

@media (max-width: 639px) {
    .hd-footer {
        padding-block: 32px 20px;
    }

    .hd-footer__container {
        padding-inline: 16px;
    }

    .hd-footer__grid {
        gap: 28px 20px;
    }

    .hd-footer__brand {
        grid-column: 1 / -1;
        padding-top: 0;
    }

    .hd-footer__practice {
        grid-column: 1 / -1;
    }

    .hd-footer__bottom {
        flex-direction: column;
        gap: 16px;
        margin-top: 32px;
    }

    .hd-footer__legal li + li {
        margin-left: 16px;
        padding-left: 16px;
    }
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
    .hd-footer a {
        transition: none;
    }

    .hd-js.hd-menu-ready .hd-header-nav {
        transition: none;
    }
}

/* Header Standard Dropdown */

@media (min-width: 1101px) {
    .hd-header-inner {
        position: relative;
    }

    .hd-header-nav .hd-menu > .menu-item-has-children:not(.hd-mega) {
        position: static;
    }

    .hd-header-nav .hd-menu > .menu-item-has-children:not(.hd-mega) > a {
        display: inline-flex;
        align-items: center;
        gap: 9px;
    }

    .hd-header-nav .hd-menu > .menu-item-has-children:not(.hd-mega) > a::after {
        content: "";
        display: inline-block;
        flex: 0 0 5px;
        width: 5px;
        height: 5px;
        box-sizing: border-box;
        margin: -3px 0 0;
        border: 0;
        border-right: 1px solid currentColor;
        border-bottom: 1px solid currentColor;
        transform: rotate(45deg);
        transition: transform 180ms ease;
    }

    .hd-header-nav .hd-menu > .menu-item-has-children:not(.hd-mega):hover > a::after,
    .hd-header-nav .hd-menu > .menu-item-has-children:not(.hd-mega):focus-within > a::after {
        transform: translateY(3px) rotate(225deg);
    }

    .hd-header-nav .hd-menu > .menu-item-has-children:not(.hd-mega) > .sub-menu {
        position: absolute;
        top: 100%;
        left: auto;
        z-index: 1100;
        display: block;
        width: 250px;
        min-width: 0;
        box-sizing: border-box;
        margin: 0;
        padding: 22px 28px;
        border: 1px solid #dedfd7;
        border-radius: 6px;
        background: #fffefa;
        box-shadow: 0 20px 40px rgb(0 0 0 / 15%);
        list-style: none;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: none;
        transition:
            opacity 180ms ease,
            visibility 180ms ease;
    }

    /* Keep the dropdown open while moving the pointer into it */

    .hd-header-nav .hd-menu > .menu-item-has-children:not(.hd-mega) > .sub-menu::before {
        content: "";
        position: absolute;
        right: 0;
        bottom: 100%;
        left: 0;
        height: 40px;
        background: transparent;
    }

    .hd-header-nav .hd-menu > .menu-item-has-children:not(.hd-mega):hover > .sub-menu,
    .hd-header-nav .hd-menu > .menu-item-has-children:not(.hd-mega):focus-within > .sub-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .hd-header-nav .hd-menu > .menu-item-has-children:not(.hd-mega) > .sub-menu > li {
        margin: 0;
        padding: 0;
        border: 0;
        list-style: none;
    }

    .hd-header-nav .hd-menu > .menu-item-has-children:not(.hd-mega) > .sub-menu > li > a {
        display: block;
        padding: 9px 0;
        color: #767c72;
        font-size: 14px;
        font-weight: 400;
        line-height: 1.3;
        letter-spacing: normal;
        text-decoration: none;
        text-transform: none;
        transition: color 180ms ease;
    }

    .hd-header-nav .hd-menu > .menu-item-has-children:not(.hd-mega) > .sub-menu > li > a:hover,
    .hd-header-nav .hd-menu > .menu-item-has-children:not(.hd-mega) > .sub-menu > li > a:focus-visible {
        color: #232c23;
    }
}

@media (min-width: 1101px) and (prefers-reduced-motion: reduce) {
    .hd-header-nav .hd-menu > .menu-item-has-children:not(.hd-mega) > a::after,
    .hd-header-nav .hd-menu > .menu-item-has-children:not(.hd-mega) > .sub-menu,
    .hd-header-nav .hd-menu > .menu-item-has-children:not(.hd-mega) > .sub-menu > li > a {
        transition: none;
    }
}

/* Header Button Colours */
.hd-header .hd-menu-toggle,
.hd-header .hd-menu-close,
.hd-header .hd-submenu-toggle {
    -webkit-appearance: none;
    appearance: none;
    color: #232c23;
    -webkit-text-fill-color: #232c23;
}
.hd-header .hd-menu-toggle svg {
    display: block;
    width: 20px;
    height: 20px;
    margin: auto;
    stroke: currentColor;
}

/* Mobile Standard Dropdown */
.hd-submenu-toggle {
    display: none;
}
@media (max-width: 1100px) {
    .hd-header-nav .hd-menu > .hd-standard-dropdown {
        position: relative;
    }
    .hd-header-nav .hd-menu > .hd-standard-dropdown > a {
        padding-right: 48px;
    }
    .hd-header-nav .hd-menu > .hd-standard-dropdown > a::after {
        content: none;
        display: none;
    }
    .hd-header .hd-submenu-toggle {
        position: absolute;
        top: 2px;
        right: 0;
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 4px;
        background: transparent;
        cursor: pointer;
    }
    .hd-submenu-toggle svg {
        width: 14px;
        height: 14px;
        transition: transform 180ms ease;
    }
    .hd-submenu-toggle[aria-expanded="true"] svg {
        transform: rotate(180deg);
    }
    .hd-header-nav .hd-menu > .hd-standard-dropdown > .sub-menu {
        position: static;
        display: none;
        width: auto;
        min-width: 0;
        margin: 0px 0 0;
        padding: 4px 0 4px 16px;
        border: 0;
        border-left: 1px solid #dedfd7;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        list-style: none;
    }
    .hd-header-nav .hd-menu > .hd-standard-dropdown.is-submenu-open > .sub-menu {
        display: block;
    }
    .hd-header-nav .hd-menu > .hd-standard-dropdown > .sub-menu > li {
        margin: 0;
        padding: 0;
        border: 0;
    }
    .hd-header-nav .hd-menu > .hd-standard-dropdown > .sub-menu > li > a {
        display: block;
        padding: 12px 0;
        color: #767c72;
        font-size: 12px;
        line-height: 1.5;
        letter-spacing: normal;
        text-transform: none;
        text-decoration: none;
    }
    .hd-header-nav .hd-menu > .hd-standard-dropdown > .sub-menu > li > a:hover {
        color: #232c23;
    }
    .hd-submenu-toggle:focus-visible {
        outline: 2px solid #60765c;
        outline-offset: 2px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .hd-submenu-toggle svg {
        transition: none;
    }
}

/* Mobile Dropdown Arrow Alignment */
@media (max-width: 1100px) {
    .hd-header .hd-submenu-toggle {
        top: 0;
        right: 0;
        width: 44px;
        height: 47px;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        padding: 0;
        color: #767c72;
        -webkit-text-fill-color: #767c72;
    }

    .hd-header .hd-submenu-toggle svg {
        display: none;
    }

    .hd-header .hd-submenu-toggle::after {
        content: "";
        display: block;
        flex: 0 0 5px;
        width: 5px;
        height: 5px;
        box-sizing: border-box;
        border-right: 1px solid currentColor;
        border-bottom: 1px solid currentColor;
        transform: rotate(-45deg);
        transition: transform 200ms ease;
    }

    .hd-header .hd-submenu-toggle[aria-expanded="true"]::after {
        transform: rotate(45deg);
    }

    .hd-header-nav .hd-menu > .hd-standard-dropdown > .sub-menu {
        border: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hd-header .hd-submenu-toggle::after {
        transition: none;
    }
}


/* Header Mobile Phone Icon */
.hd-header .hd-mobile-phone {
    display: none;
}

@media (max-width: 1100px) {
    .hd-header .hd-header-inner {
        column-gap: 12px;
    }

    .hd-header .hd-header-inner > .hd-brand {
        margin-right: auto;
    }

    .hd-header .hd-mobile-phone {
        display: inline-flex;
        flex: 0 0 44px;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        margin-left: auto;
        padding: 0;
        color: #232c23;
        -webkit-text-fill-color: #232c23;
        text-decoration: none;
        border: 0;
        background: transparent;
    }

    .hd-header .hd-mobile-phone svg {
        display: block;
        width: 20px;
        height: 20px;
        stroke: currentColor;
    }

    .hd-header .hd-menu-toggle {
        flex-shrink: 0;
        margin-left: 0;
    }

    .hd-header .hd-mobile-phone:focus-visible {
        outline: 2px solid #66745d;
        outline-offset: 2px;
        border-radius: 4px;
    }
}
.hd-header-actions>a:not(.hd-button):hover {
    color: #63745b;
}
/* Desktop Dropdown Hover Area and Link Colour */
@media (min-width: 1101px) {
    .hd-header-nav .hd-menu >
    .menu-item-has-children:not(.hd-mega) > .sub-menu::before {
        left: 0;
        right: auto;
        width: 85px;
        height: 40px;
    }

    .hd-header-nav .hd-menu >
    .menu-item-has-children:not(.hd-mega):hover > a,
    .hd-header-nav .hd-menu >
    .menu-item-has-children:not(.hd-mega):focus-within > a {
        color: #728468;
        -webkit-text-fill-color: #728468;
    }
}
@media (min-width: 1101px) {
    .hd-header-nav .hd-menu >
    .menu-item-has-children:not(.hd-mega) > a {
        position: relative;
        z-index: 1101;
        pointer-events: auto;
    }
}