/* WordPress additions to the layout styles in style.css */

/* Admin bar: keep the sticky header below it */
@media(min-width:701px){.admin-bar .nav-wrap{top:32px}}
@media(min-width:701px) and (max-width:782px){.admin-bar .nav-wrap{top:46px}}
@media(max-width:700px){.admin-bar .nav{top:46px!important}}
@media(max-width:600px){.admin-bar #wpadminbar{position:fixed}}

/* WPForms inside the layout's form panels.
   style.css already styles label, input, textarea and button inside .form-panel;
   these rules map the layout's .field / .form-row / label i structure onto WPForms markup
   and undo WPForms' own field sizing. */
.form-panel .cc-wpforms .wpforms-container{margin:0;padding:0;max-width:none}
.form-panel .cc-wpforms .wpforms-container .wpforms-form .wpforms-field-container{display:grid;grid-template-columns:minmax(0,1fr);column-gap:1em;margin:0;padding:0}
.form-panel .cc-wpforms--row .wpforms-container .wpforms-form .wpforms-field-container{grid-template-columns:repeat(2,minmax(0,1fr))}
.form-panel .cc-wpforms .wpforms-container .wpforms-form .wpforms-field{grid-column:1/-1;float:none;width:auto;clear:none;padding:0;margin:0 0 .95em;overflow:visible}
.form-panel .cc-wpforms--row .wpforms-container .wpforms-form :is(.wpforms-field-name,.wpforms-field-phone,.wpforms-field-text,.wpforms-field-number){grid-column:auto}
#home-introduction .form-panel .cc-wpforms .wpforms-container .wpforms-form .wpforms-field{margin-bottom:1.1em}
#testimonials .form-panel .cc-wpforms .wpforms-container .wpforms-form .wpforms-field{margin-bottom:1.3em}

.form-panel .cc-wpforms .wpforms-container .wpforms-form .wpforms-field-label{display:block;float:none;margin:0 0 .3em;padding:0;font:inherit;line-height:normal;color:inherit}
.form-panel.dark .cc-wpforms .wpforms-container .wpforms-form .wpforms-field-label{font-size:1em;margin-bottom:.4em;color:#f1ebdf}
.form-panel .cc-wpforms .wpforms-container .wpforms-form .wpforms-required-label{font-style:normal;font-weight:inherit;color:#b57c46;margin:0}

.form-panel .cc-wpforms .wpforms-container .wpforms-form .wpforms-field :is(input,textarea){max-width:100%;height:auto;box-shadow:none;font-family:'Reference Sans',sans-serif}
.form-panel .cc-wpforms .wpforms-container .wpforms-form .iti{display:block;width:100%}

.form-panel .cc-wpforms .wpforms-container .wpforms-form .wpforms-submit-container{clear:both;margin:0;padding:0}
.form-panel .cc-wpforms .wpforms-container .wpforms-form .wpforms-submit::after{content:"\0020\00a0\0020\27F6"}

.form-panel .cc-wpforms .wpforms-container .wpforms-form :is(label.wpforms-error,em.wpforms-error){display:block;margin:.35em 0 0;padding:0;font-family:'Reference Sans',sans-serif;font-size:.8em;font-style:normal;line-height:1.3;color:#b4412f}
.form-panel.dark .cc-wpforms .wpforms-container .wpforms-form :is(label.wpforms-error,em.wpforms-error){color:#f2a596}
.form-panel .cc-wpforms .wpforms-container .wpforms-form :is(input,textarea).wpforms-error{border-color:#b4412f}
.form-panel .cc-wpforms :is(.wpforms-confirmation-container,.wpforms-confirmation-container-full){margin:0;padding:0;border:0;background:none;color:inherit;font-family:'Reference Sans',sans-serif;font-size:.9em;line-height:1.4}
.form-panel .cc-wpforms :is(.wpforms-field-hp,.wpforms-hidden,.wpforms-field-hidden){display:none!important}
.form-panel .cc-wpforms .wpforms-screen-reader-element{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);border:0;white-space:nowrap}


@media(max-width:700px){
.form-panel .cc-wpforms--row .wpforms-container .wpforms-form .wpforms-field-container{grid-template-columns:minmax(0,1fr)}
.form-panel .cc-wpforms--row .wpforms-container .wpforms-form :is(.wpforms-field-name,.wpforms-field-phone,.wpforms-field-text,.wpforms-field-number){grid-column:1/-1}
.form-panel .cc-wpforms .wpforms-container .wpforms-form .wpforms-field{margin-bottom:14px}
}

/* Posts and pages without a layout template */
.cc-entry{max-width:1440px;margin:auto;background:var(--paper);padding:calc(6cqw + 3rem) 4.7% 5rem}
.cc-entry-inner{max-width:46rem}
.cc-entry h1{font-weight:400;font-size:clamp(2.4rem,5cqw,4.5rem);line-height:1;letter-spacing:-.015em;margin:0 0 .6em}
.cc-entry h2{font-weight:400;font-size:1.9rem;line-height:1.15;margin:1.6em 0 .5em}
.cc-entry-item h2 a:hover{color:var(--gold)}
.cc-entry-content{font-family:'Reference Sans',Helvetica,sans-serif;font-size:1.0625rem;line-height:1.6}
.cc-entry-content img{height:auto}
.cc-entry-content a{color:var(--gold);text-decoration:underline}
@media(max-width:700px){.cc-entry{padding:104px 20px 48px}}

/* Blog listing (archive.php): blog.html rebuilt as a flowing grid, so cards grow with
   their titles and excerpts instead of overlapping. Sizes are in cqw, the units of the
   original absolute layout, so the desktop proportions stay the same. */
.cc-card-img{display:block;width:100%;object-fit:cover}
.cc-no-thumb{background:#efe9dc}
@media(min-width:701px){
.cc-blog{padding-bottom:3cqw}
.cc-blog .grp.post-card{display:block}
.cc-blog-head{position:relative;min-height:22.17cqw;padding:10.37cqw 0 2cqw 5.13cqw}
.cc-blog-title{margin:0;max-width:39cqw;font-size:8.44338cqw;letter-spacing:-.015em}
.cc-blog .post{font-size:1.37068cqw}
.cc-blog-empty{margin:0 0 4cqw 5.13cqw}
.cc-blog .grp.cc-card-feature{display:grid;grid-template-columns:56.615cqw 37.187cqw;column-gap:3.218cqw;align-items:start;margin-bottom:2.15cqw}
.cc-card-feature .cc-card-img{height:30.27cqw}
.cc-blog .cc-card-feature .post{font-size:1.78784cqw;padding-top:3.22cqw}
.cc-blog-main{display:grid;grid-template-columns:64.84cqw 27.41cqw;column-gap:1.905cqw;padding-left:3.695cqw;align-items:start}
.cc-blog-grid{display:grid;grid-template-columns:31.7cqw 31.23cqw;gap:3.5cqw 1.905cqw;align-items:start}
.cc-blog-grid .cc-card-img{aspect-ratio:7/4}
.cc-blog-grid .post,.cc-blog-aside .post{margin-top:.4cqw;padding-left:.24cqw}
.cc-blog-recent{margin:.83cqw 0 0 3.34cqw;font-size:1.37068cqw}
.cc-blog-contact{display:grid;grid-template-columns:6.44cqw 1fr;margin-top:3cqw}
.cc-blog-contact .decor{width:100%;height:100%;object-fit:fill}
.cc-blog-contact .form-panel{font-size:1.1919cqw;padding:1.4cqw;border:0}
.cc-blog-aside .post-card{margin-top:1.55cqw}
.cc-blog-aside .cc-card-img{aspect-ratio:33/20}
.cc-blog-aside .post{padding-left:1.31cqw}
.cc-blog-wide{display:grid;grid-template-columns:47.68cqw 43.14cqw;column-gap:2.27cqw;padding-left:3.695cqw;margin-top:4cqw;align-items:start}
.cc-blog .grp.cc-card-wide{display:grid;grid-template-columns:44% 1fr;column-gap:1.2cqw;align-items:start}
.cc-card-wide .cc-card-img{height:19.79cqw}
.cc-blog .cc-card-wide .post{font-size:1.25149cqw;padding-top:1.55cqw}
.cc-blog-nav{width:29.2cqw;margin:4cqw 0 0 41.12cqw;font-size:1.54946cqw}
}
@media(max-width:700px){
.cc-blog-head,.cc-blog-main,.cc-blog-grid,.cc-blog-aside,.cc-blog-wide{display:contents}
.cc-blog-nav{order:6}
.cc-blog-recent{order:7}
.cc-blog-contact{order:9}
.cc-no-thumb{aspect-ratio:16/10}
}

/* Single post (single.php): the header of blog-detail.html in normal flow,
   so a long title pushes the date and photo down instead of covering them */
.cc-post-meta{color:#8b8278}
@media(min-width:701px){
.cc-post-head{padding:11.72cqw 4.69cqw 7.8cqw}
.cc-post-title{margin:0;max-width:90.23cqw;font-size:4.85156cqw;line-height:1.05;letter-spacing:-.015em}
.cc-post-meta{margin:3.68cqw 0 0 .2cqw;font-size:1.46484cqw}
.cc-post-image{margin-top:3.7cqw}
}

/* Header menu: the WordPress menu in the "Header menu" location, with dropdown submenus.
   Top-level links keep the layout's look; the parent of the current page is underlined too. */
.cc-menu,.cc-menu .sub-menu{list-style:none;margin:0;padding:0}
.cc-menu>li:is(.current-menu-ancestor,.current_page_parent)>a{border-bottom:1px solid var(--gold);padding-bottom:.25em}
@media(min-width:701px){
.cc-menu{display:flex;align-items:center;gap:1.7em}
.cc-menu li{position:relative}
.cc-menu .menu-item-has-children>a::after{content:"";display:inline-block;width:.36em;height:.36em;margin:0 0 .22em .5em;border-right:1px solid currentColor;border-bottom:1px solid currentColor;transform:rotate(45deg)}
.cc-menu .sub-menu{position:absolute;top:100%;left:-1.2em;z-index:60;min-width:15em;margin-top:1em;padding:.7em 0;background:var(--paper);border:1px solid #e3d9c6;box-shadow:0 .9em 1.8em -1.1em #33241466;visibility:hidden;opacity:0;transform:translateY(-.3em);transition:opacity .15s,transform .15s,visibility .15s}
.cc-menu .sub-menu::before{content:"";position:absolute;left:0;right:0;bottom:100%;height:1.1em}
.cc-menu li:is(:hover,:focus-within)>.sub-menu{visibility:visible;opacity:1;transform:none}
.cc-menu .sub-menu:has(>li:nth-child(8)){display:grid;grid-template-columns:repeat(2,minmax(13em,auto))}
.cc-menu .sub-menu a{display:block;padding:.5em 1.2em;white-space:nowrap}
.cc-menu .sub-menu a[aria-current=page]{border-bottom:0;padding-bottom:.5em;color:var(--gold)}
.cc-menu .sub-menu .sub-menu{top:-.7em;left:100%;margin:0}
.cc-menu .sub-menu .sub-menu::before{display:none}
}
@media(min-width:701px) and (prefers-reduced-motion:reduce){.cc-menu .sub-menu{transition:none}}
@media(max-width:700px){
.cc-menu{width:100%}
.cc-menu>li:is(.current-menu-ancestor,.current_page_parent)>a{border-bottom:0;color:var(--gold);padding-bottom:10px}
.cc-menu .sub-menu{margin:0 0 8px 2px;padding-left:16px;border-left:1px solid #e3d9c6}
.cc-menu .sub-menu a{padding:7px 0;font-size:16px}
.nav:has(.nav-links.open){max-height:100dvh;overflow-y:auto;overscroll-behavior:contain}
}

/* Sitemap (template-sitemap.php): the Simple Sitemap list in normal flow, so it grows with
   the number of pages, posts and portfolio items. Sizes follow the layout's sitemap block;
   lists use the layout's two-column list style (.copy ul.two-col). */
.cc-sitemap-list .simple-sitemap-wrap h2{margin:0 0 .4em;font-family:'Reference Serif','Times New Roman',serif;font-size:1.5em;font-weight:400;line-height:1.1}
.cc-sitemap-list .simple-sitemap-wrap:not(:first-of-type){margin-top:1.6em}
.cc-sitemap-list .simple-sitemap-container ul{columns:2;column-gap:1.4em;margin:0;padding-left:1.1em;line-height:1.5}
.cc-sitemap-list .simple-sitemap-container li{break-inside:avoid;padding-left:.1em;margin-bottom:.25em}
.cc-sitemap-list a:hover{color:var(--gold)}
@media(min-width:701px){
.cc-sitemap{padding:13.18cqw 4.69cqw 6cqw}
.cc-sitemap-title{margin:0;font-size:5.57031cqw}
.cc-sitemap-list{margin-top:4.6cqw;font-size:1.95312cqw;line-height:1.6}
}
@media(max-width:700px){
.cc-sitemap-list .simple-sitemap-container ul{columns:1}
#site-map h1.cc-sitemap-title{font-size:40px!important}
}

/* Booked calendar (template-get-an-appointment.php): Booked prints the colours from its
   settings inline with !important; inside the template column the layout's palette wins. */
body .post-copy div.booked-calendar .bc-head,body .post-copy div.booked-calendar .bc-head .bc-col{background:#fffdf8!important;border-color:#d9cbb6!important;color:var(--ink)!important}
body .post-copy div.booked-calendar .bc-head .monthName{color:var(--ink)!important}
body .post-copy div.booked-calendar .bc-head .bc-row.top .bc-col{border:0!important}
body .post-copy div.booked-calendar .bc-head a,body .post-copy div.booked-calendar .bc-head a i{color:var(--gold)!important}
body .post-copy div.booked-calendar .bc-row.days,body .post-copy div.booked-calendar .bc-row.days .bc-col{background:transparent!important;border-color:#eee4d2!important;color:#6d655a!important}
body .post-copy div.booked-calendar .bc-col:hover .date span{background:var(--gold)!important;color:#fff!important}
body .post-copy div.booked-calendar input[type=submit].button-primary,body .post-copy div.booked-calendar .booked-appt-list .timeslot .timeslot-people button{background:var(--gold)!important;border-color:var(--gold)!important;color:#fff!important}
body .post-copy div.booked-calendar input[type=submit].button-primary:hover,body .post-copy div.booked-calendar .booked-appt-list .timeslot .timeslot-people button:hover{background:#252727!important;border-color:#252727!important}

/* Landing templates (template-landing-*.php): the "Are You Ready…" call-to-action box
   from the old Elementor pages. */
.post-copy .tpl-cta{margin:2em 0;padding:1.8em 2em;background:rgba(255,253,248,.7);border:1px solid #d9cbb6}
.post-copy .tpl-cta h2{margin-top:0}
.post-copy .tpl-cta .tpl-actions{margin-top:1.2em}

/* City Landing and Landing templates: the heading block grows with the H1, so a title that
   wraps onto two lines is not cut off, and the text starts right below it. */
@media(min-width:701px){
.board.cc-landing-head{aspect-ratio:auto!important;padding:11.71875% 4.6875% 2.5%}
.board.cc-landing-head>h1.placed{position:static;width:auto!important;margin:0}
}
@media(max-width:700px){.board.cc-landing-head{padding-bottom:0}}
