/* Premier: fixed header (see-through over a top banner, solid on scroll), full-screen slider,
   navy gradients with gold accents, rounded lifting cards, counting stats and scroll reveal.
   Shades are mixed from the firm's primary and accent colours so any palette works. */

.tpl-premier {
    --p-dark: color-mix(in srgb, var(--primary) 68%, #000);
    --p-mid: color-mix(in srgb, var(--primary) 70%, #2196f3);
    --p-soft: color-mix(in srgb, var(--p-mid) 10%, #fff);
    --a-light: color-mix(in srgb, var(--accent) 60%, #ffe65a);
    --muted: color-mix(in srgb, var(--text) 72%, #fff);
    --radius: 14px;
    --shadow-sm: 0 4px 16px color-mix(in srgb, var(--primary) 8%, transparent);
    --shadow-md: 0 10px 30px color-mix(in srgb, var(--primary) 12%, transparent);
    --shadow-lg: 0 20px 50px color-mix(in srgb, var(--primary) 18%, transparent);
    --ease: all .35s ease;
    --header-h: 84px;

    min-height: 100vh;
    overflow-x: clip;
    background-color: var(--bg);
    background-image:
        radial-gradient(circle at 10% 10%, color-mix(in srgb, var(--p-mid) 22%, transparent), transparent 38%),
        radial-gradient(circle at 92% 18%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 34%),
        linear-gradient(180deg, color-mix(in srgb, var(--bg) 85%, var(--p-mid)) 0%, var(--bg) 35%, color-mix(in srgb, var(--bg) 60%, #fff) 70%, var(--bg) 100%);
    background-attachment: fixed;
}
html:has(.tpl-premier) { scroll-behavior: smooth; }
.tpl-premier .container { max-width: 1320px; }

.tpl-premier h1, .tpl-premier h2, .tpl-premier h3, .tpl-premier h4 { font-weight: 600; color: var(--p-dark); }
.tpl-premier p { color: var(--muted); line-height: 1.8; }
.tpl-premier a { transition: var(--ease); }

/* ---------- Buttons ---------- */
.tpl-premier .btn {
    border-radius: 50px; padding: 13px 34px; font-weight: 600; letter-spacing: .3px; transition: var(--ease);
    box-shadow: var(--shadow-sm);
}
.tpl-premier .btn:hover { transform: translateY(-3px); filter: none; }
.tpl-premier .btn-primary { background: linear-gradient(135deg, var(--p-mid), var(--primary)); color: #fff; }
.tpl-premier .btn-primary:hover { background: linear-gradient(135deg, var(--primary), var(--p-dark)); box-shadow: var(--shadow-md); }
.tpl-premier .btn-accent {
    background: linear-gradient(135deg, var(--a-light), var(--accent)); color: var(--p-dark); font-weight: 700;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 35%, transparent);
}
.tpl-premier .btn-accent:hover { box-shadow: 0 12px 26px color-mix(in srgb, var(--accent) 45%, transparent); }
.tpl-premier .btn-outline { box-shadow: inset 0 0 0 2px #fff; color: #fff; padding: 13px 32px; }
.tpl-premier .btn-outline:hover { background: #fff; color: var(--primary); }

/* ---------- Header ---------- */
.tpl-premier .site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1030; padding: 14px 0;
    background: var(--p-dark); color: #fff; box-shadow: var(--shadow-md); transition: var(--ease);
}
.tpl-premier .site-header .container { min-height: 56px; flex-wrap: nowrap; }
/* See-through while it sits over a dark banner at the top of the page. */
.tpl-premier:has(main > .block:first-child:is(.block-slider, .block-pageheader, .block-hero)) .site-header:not(.scrolled):not(:has(.nav-toggle:checked)) {
    padding: 24px 0; background: color-mix(in srgb, var(--p-dark) 35%, transparent); backdrop-filter: blur(6px); box-shadow: none;
}
.tpl-premier main { padding-top: var(--header-h); }
.tpl-premier main > .block:first-child:is(.block-slider, .block-pageheader, .block-hero) { margin-top: calc(-1 * var(--header-h)); }

.tpl-premier .brand { gap: 12px; color: #fff; line-height: 1.15; }
.tpl-premier .brand img { max-height: 56px; }
.tpl-premier .brand-icon {
    width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem;
    background: linear-gradient(135deg, var(--a-light), var(--accent)); color: var(--p-dark);
}
.tpl-premier .brand-text { display: flex; flex-direction: column; }
.tpl-premier .brand-name { font-size: 1.35rem; color: #fff; }
.tpl-premier .brand-text small { font: 400 .68rem var(--font-body); letter-spacing: 1px; text-transform: uppercase; color: var(--a-light); }

.tpl-premier .site-nav { margin-left: auto; }
.tpl-premier .site-nav ul { gap: 6px; }
.tpl-premier .site-nav a { position: relative; margin: 0 10px; padding: 8px 4px; color: rgb(255 255 255 / .88); font-weight: 500; border-radius: 0; }
.tpl-premier .site-nav a::after {
    content: ""; position: absolute; left: 4px; right: 4px; bottom: 0; height: 2px; background: var(--a-light);
    transform: scaleX(0); transform-origin: left; transition: var(--ease);
}
.tpl-premier .site-nav a:hover::after, .tpl-premier .site-nav a.active::after { transform: scaleX(1); }
.tpl-premier .site-nav a.active { color: var(--a-light); font-weight: 500; }

.tpl-premier .header-cta { display: flex; align-items: center; gap: 18px; margin-left: 18px; }
.tpl-premier .portal-link { color: rgb(255 255 255 / .8); text-decoration: none; font-size: .9rem; white-space: nowrap; }
.tpl-premier .portal-link:hover { color: var(--a-light); }
.tpl-premier .header-cta .btn { padding: 9px 24px; box-shadow: none; }
.tpl-premier .header-cta .btn:hover { transform: none; filter: brightness(1.08); }

@media (max-width: 1100px) {
    .tpl-premier .site-header .container { flex-wrap: nowrap; }
    .tpl-premier .site-nav { order: 2; width: auto; }
    .tpl-premier .site-nav ul {
        position: absolute; top: 100%; left: 0; right: 0; padding: 8px 16px 16px; background: var(--p-dark);
        box-shadow: var(--shadow-md);
    }
    .tpl-premier .site-nav a { margin: 0; padding: 12px 4px; }
    .tpl-premier .site-nav a::after { display: none; }
    .tpl-premier .nav-toggle-label { color: #fff; }
    .tpl-premier .header-cta { display: none; }
}
@media (max-width: 480px) {
    .tpl-premier .brand-name { font-size: 1.1rem; }
    .tpl-premier .brand-icon { width: 40px; height: 40px; }
}

/* ---------- Sections ---------- */
.tpl-premier .block { padding: 90px 0; }
@media (max-width: 767px) { .tpl-premier .block { padding: 60px 0; } }
.tpl-premier :is(.block-services, .block-team, .block-gallery, .block-testimonials, .features-cards) { background: rgb(255 255 255 / .35); }

.tpl-premier .section-tag {
    display: flex; width: fit-content; align-items: center; gap: 8px; margin-bottom: 16px; padding: 6px 18px; border-radius: 50px;
    background: var(--p-soft); color: var(--p-mid); font-size: .8rem; font-weight: 600; letter-spacing: 1.5px;
}
.tpl-premier .section-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.tpl-premier .block h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: 18px; }
.tpl-premier .section-intro { color: var(--muted); opacity: 1; }

/* Centred section heads with a gradient underline. */
.tpl-premier :is(.block-services, .block-features, .block-accordion, .block-team, .block-gallery, .block-testimonials, .block-blog, .block-contact) > .container > :is(.section-tag, h2, .section-intro) {
    margin-left: auto; margin-right: auto; text-align: center;
}
.tpl-premier :is(.block-services, .block-features, .block-accordion, .block-team, .block-gallery, .block-testimonials, .block-blog, .block-contact) > .container > h2::after {
    content: ""; display: block; width: 70px; height: 4px; margin: 18px auto 0; border-radius: 4px;
    background: linear-gradient(90deg, var(--p-mid), var(--accent));
}
.tpl-premier .block > .container > h2 { margin-bottom: 48px; }
.tpl-premier .block > .container > h2:has(+ .section-intro) { margin-bottom: 18px; }
.tpl-premier .section-intro { max-width: 680px; margin-bottom: 48px; }

/* Scroll reveal (only once site.js has switched it on). */
.tpl-premier.reveal-on main > .block:not(.is-visible) > .container { opacity: 0; transform: translateY(30px); }
.tpl-premier main > .block > .container { transition: opacity .8s cubic-bezier(.33, 1, .68, 1), transform .8s cubic-bezier(.33, 1, .68, 1); }

/* ---------- Hero banner + slider + page banner ---------- */
.tpl-premier .block-hero, .tpl-premier .block-slider .slide {
    min-height: 92vh; min-height: max(560px, 92svh); display: flex; align-items: center;
    padding: calc(var(--header-h) + 48px) 0 80px; background: var(--p-dark); color: #fff;
}
.tpl-premier .block-hero .hero-bg { z-index: 0; }
.tpl-premier .block-hero::after, .tpl-premier .block-slider .slide::after {
    content: ""; position: absolute; inset: 0; z-index: 0;
    background: linear-gradient(115deg, color-mix(in srgb, var(--p-dark) 92%, transparent) 0%,
        color-mix(in srgb, var(--primary) 78%, transparent) 45%, color-mix(in srgb, var(--primary) 55%, transparent) 100%);
}
.tpl-premier .block-hero .container { z-index: 2; }
.tpl-premier .block-hero h1, .tpl-premier .block-slider .slide-title {
    max-width: 720px; color: #fff; font-size: clamp(2.1rem, 5vw, 3.2rem); font-weight: 700; line-height: 1.2;
    text-shadow: 0 4px 20px rgb(0 0 0 / .25); margin-bottom: 22px;
}
.tpl-premier .block-slider .slide-content { max-width: 680px; }
.tpl-premier .block-slider .hl { color: var(--a-light); }
.tpl-premier .block-slider .eyebrow { color: var(--a-light); letter-spacing: 3px; margin-bottom: 18px; }
.tpl-premier .block-hero .lead, .tpl-premier .block-slider .lead { color: rgb(255 255 255 / .88); font-size: 1.1rem; max-width: 560px; margin-bottom: 34px; }
.tpl-premier .block-slider { background: var(--p-dark); }
.tpl-premier .block-slider .slider-arrow { width: 56px; height: 56px; left: 24px; background: rgb(255 255 255 / .12); }
.tpl-premier .block-slider .slider-arrow.next { left: auto; right: 24px; }
/* Keep slide text clear of the arrows (24px + 56px) until the centred container leaves room on its own. */
@media (min-width: 761px) and (max-width: 1520px) { .tpl-premier .block-slider .container { padding-inline: 100px; } }
.tpl-premier .slider-dots button { width: 34px; }
.tpl-premier .slider-dots button.is-active, .tpl-premier .slider-arrow:hover { background: var(--a-light); }
@media (max-width: 767px) {
    .tpl-premier .block-hero, .tpl-premier .block-slider .slide { min-height: 82svh; }
}

.tpl-premier .block-pageheader { padding: calc(var(--header-h) + 56px) 0 90px; background: var(--p-dark); }
.tpl-premier .block-pageheader::after {
    background: linear-gradient(120deg, color-mix(in srgb, var(--p-dark) 93%, transparent), color-mix(in srgb, var(--p-mid) 82%, transparent));
}
.tpl-premier .block-pageheader h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 2.6rem); margin-bottom: 12px; }
.tpl-premier .block-pageheader .lead { color: rgb(255 255 255 / .85); }
.tpl-premier .breadcrumb { margin-bottom: 16px; }
.tpl-premier .breadcrumb a { color: var(--a-light); }
.tpl-premier .breadcrumb li { color: rgb(255 255 255 / .7); }

/* ---------- Cards (services, blog, testimonials, feature cards) ---------- */
.tpl-premier .card-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
/* Exactly four team members: one row of four, or two by two, never three plus one on its own. */
@media (min-width: 700px) { .tpl-premier .block-team .card-grid:has(> .team-card:nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .tpl-premier .block-team .card-grid:has(> .team-card:nth-child(4):last-child) { grid-template-columns: repeat(4, 1fr); } }
.tpl-premier .card {
    background: #fff; border-radius: var(--radius); padding: 38px 30px; height: 100%;
    border: 1px solid color-mix(in srgb, var(--primary) 6%, transparent); box-shadow: var(--shadow-sm); transition: var(--ease);
}
.tpl-premier .card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: transparent; }
.tpl-premier .card h3 { font-size: 1.2rem; margin-bottom: 12px; }
.tpl-premier .card ul { padding-left: 18px; }
.tpl-premier .card li { color: var(--muted); margin-bottom: 6px; font-size: .95rem; }
.tpl-premier .card-icon, .tpl-premier .features-cards .feature-icon {
    width: 66px; height: 66px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 22px;
    font-size: 1.7rem; color: var(--p-mid); background: linear-gradient(135deg, var(--p-soft), color-mix(in srgb, var(--p-mid) 18%, #fff));
    transition: var(--ease);
}
.tpl-premier .card:hover :is(.card-icon, .feature-icon) {
    background: linear-gradient(135deg, var(--p-mid), var(--primary)); color: #fff; transform: rotate(-6deg) scale(1.08);
}
.tpl-premier .card-link { color: var(--p-mid); font-size: .92rem; margin-top: 16px; }
.tpl-premier .card-link i { transition: var(--ease); }
.tpl-premier .card:hover .card-link i { transform: translateX(5px); }

/* ---------- Image + text ---------- */
.tpl-premier .split-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.tpl-premier .split-badge { right: -20px; bottom: -28px; padding: 20px 26px; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.tpl-premier .split-badge strong { font-size: 2.2rem; color: var(--primary); }
.tpl-premier .split-badge span { color: var(--muted); opacity: 1; letter-spacing: 1px; }
@media (max-width: 767px) {
    .tpl-premier .split-badge { right: 10px; bottom: -20px; padding: 14px 18px; }
    .tpl-premier .split-badge strong { font-size: 1.5rem; }
}
/* Lists in the text become a tick list. */
.tpl-premier .block-split .prose ul { list-style: none; padding: 0; margin: 24px 0; }
.tpl-premier .block-split .prose li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; color: var(--text); font-weight: 500; }
.tpl-premier .block-split .prose li::before {
    content: ""; flex: 0 0 22px; height: 22px; margin-top: 3px; border-radius: 50%;
    background: var(--p-mid) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3E%3Cpath d='M12.736 3.97a.733.733 0 0 1 1.047 0c.286.289.29.756.01 1.05L7.88 12.01a.733.733 0 0 1-1.065.02L3.217 8.384a.757.757 0 0 1 0-1.06.733.733 0 0 1 1.047 0l3.052 3.093 5.4-6.425z'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- Icon features ---------- */
.tpl-premier .feature-grid { gap: 24px; }
.tpl-premier .feature { padding: 20px 10px; }
.tpl-premier .feature-icon {
    width: 84px; height: 84px; margin-bottom: 20px; font-size: 2rem; color: #fff;
    background: linear-gradient(135deg, var(--p-mid), var(--primary)); box-shadow: var(--shadow-sm); transition: var(--ease);
}
.tpl-premier .feature:not(.card):hover .feature-icon { transform: scale(1.1) rotate(8deg); box-shadow: var(--shadow-md); }
.tpl-premier .feature h3 { font-size: 1.05rem; margin-bottom: 8px; }
.tpl-premier .feature p { font-size: .9rem; opacity: 1; }
.tpl-premier .features-cards .feature { padding: 38px 30px; }
.tpl-premier .features-cards .feature-icon { margin: 0 auto 22px; }
.tpl-premier .features-cards .feature h3 { font-size: 1.2rem; }

/* ---------- Stats ---------- */
.tpl-premier .block-stats {
    position: relative; overflow: hidden; padding: 72px 0;
    background: linear-gradient(120deg, var(--p-dark), var(--p-mid));
}
.tpl-premier .block-stats::before {
    content: ""; position: absolute; width: 500px; height: 500px; top: -200px; right: -150px;
    background: radial-gradient(circle, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%);
}
.tpl-premier .stats-row { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.tpl-premier .stat { padding: 20px; }
.tpl-premier .stat .stat-icon { font-size: 2.2rem; color: var(--a-light); margin-bottom: 14px; }
.tpl-premier .stat strong { font-size: 2.6rem; color: #fff; }
.tpl-premier .stat span { color: rgb(255 255 255 / .75); text-transform: uppercase; letter-spacing: 1px; font-size: .82rem; }
@media (max-width: 480px) { .tpl-premier .stats-row { grid-template-columns: 1fr 1fr; } .tpl-premier .stat strong { font-size: 2rem; } }

/* ---------- Accordion ---------- */
.tpl-premier .accordion { gap: 16px; max-width: 1100px; margin: 0 auto; }
.tpl-premier .accordion details { border: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.tpl-premier .accordion summary { gap: 16px; padding: 22px 28px; background: #fff; color: var(--p-dark); transition: var(--ease); }
.tpl-premier .accordion details[open] summary { background: linear-gradient(120deg, var(--primary), var(--p-mid)); color: #fff; }
.tpl-premier .accordion summary::after, .tpl-premier .accordion details[open] summary::after {
    content: ""; width: 9px; height: 9px; flex-shrink: 0; margin-right: 4px;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .3s;
}
.tpl-premier .accordion details[open] summary::after { transform: rotate(-135deg); }
.tpl-premier .accordion .num {
    width: 40px; height: 40px; flex: 0 0 40px; border-radius: 10px; display: grid; place-items: center;
    background: var(--p-soft); color: var(--p-mid); transition: var(--ease);
}
.tpl-premier .accordion details[open] .num { background: rgb(255 255 255 / .18); color: #fff; }
.tpl-premier .accordion-body { max-width: none; padding: 26px 28px 30px 84px; background: color-mix(in srgb, var(--p-mid) 9%, #fff); }
.tpl-premier .accordion-body li { color: var(--text); margin-bottom: 8px; }
.tpl-premier .accordion-body ul { padding-left: 18px; }
@media (max-width: 600px) { .tpl-premier .accordion-body { padding-left: 28px; } }

/* ---------- Team / profile ---------- */
.tpl-premier .team-card { padding: 0; overflow: hidden; }
.tpl-premier .team-card-head { padding: 36px 24px 24px; background: linear-gradient(135deg, var(--primary), var(--p-mid)); }
.tpl-premier .team-card-head h3 { color: #fff; margin: 0 0 2px; }
.tpl-premier .team-card .role { color: var(--a-light); font-weight: 500; font-size: .92rem; }
.tpl-premier .team-card .qual { color: rgb(255 255 255 / .75); opacity: 1; }
.tpl-premier .team-card img, .tpl-premier .team-card .avatar { width: 140px; height: 140px; border: 5px solid rgb(255 255 255 / .35); box-shadow: var(--shadow-md); }
.tpl-premier .team-card .avatar { background: rgb(255 255 255 / .15); }
.tpl-premier .team-points { list-style: none; padding: 28px 32px; margin: 0; }
.tpl-premier .team-points li { display: flex; gap: 12px; margin-bottom: 14px; color: var(--muted); }
.tpl-premier .team-points li::before { content: "\2713"; color: var(--p-mid); font-weight: 700; }
/* A single person becomes a wide profile card. */
.tpl-premier .team-card:only-child { grid-column: 1 / -1; width: 100%; max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: 1fr 2fr; text-align: left; }
.tpl-premier .team-card:only-child .team-card-head { display: flex; flex-direction: column; justify-content: center; text-align: center; padding: 44px 30px; }
.tpl-premier .team-card:only-child .team-points { align-self: center; padding: 32px; }
.tpl-premier .team-card:only-child:not(:has(.team-points)) { grid-template-columns: 1fr; max-width: 420px; }
@media (max-width: 760px) { .tpl-premier .team-card:only-child { grid-template-columns: 1fr; } }

/* ---------- Testimonials, blog, text ---------- */
.tpl-premier .block-testimonials blockquote.card { border-top: 4px solid var(--accent); }
.tpl-premier .block-testimonials blockquote p { font-style: italic; }
.tpl-premier .block-testimonials footer { color: var(--p-dark); }
.tpl-premier .blog-card img { border-radius: 10px; }
.tpl-premier .blog-card h3 a:hover { color: var(--p-mid); }
.tpl-premier .block-richtext h2 { color: var(--p-dark); }

/* ---------- Gallery ---------- */
.tpl-premier .gallery > .slide img { border-radius: var(--radius); box-shadow: var(--shadow-md); }

/* ---------- Call to action ---------- */
.tpl-premier .block-cta { padding: 90px 0; }
.tpl-premier .cta-box {
    position: relative; overflow: hidden; padding: 60px; border-radius: var(--radius);
    background: linear-gradient(120deg, var(--p-dark), var(--primary), var(--p-mid));
}
.tpl-premier .cta-box::after {
    content: ""; position: absolute; width: 340px; height: 340px; right: -100px; bottom: -140px; border-radius: 50%;
    background: color-mix(in srgb, var(--accent) 15%, transparent); pointer-events: none;
}
.tpl-premier .cta-box > * { position: relative; z-index: 1; }
.tpl-premier .cta-text { flex: 1 1 420px; }
.tpl-premier .cta-box h2 { color: #fff; margin-bottom: 10px; }
.tpl-premier .cta-box p { color: rgb(255 255 255 / .82); opacity: 1; }
@media (max-width: 767px) { .tpl-premier .cta-box { padding: 40px 24px; text-align: center; justify-content: center; } .tpl-premier .cta-box .btn-row { justify-content: center; } }

/* ---------- Contact: info cards across the top, form left, hours and map right ---------- */
.tpl-premier .contact-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.tpl-premier .contact-details { display: contents; }
.tpl-premier .contact-item {
    grid-column: span 4; margin: 0; padding: 30px; gap: 18px; align-items: flex-start;
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: var(--ease);
}
.tpl-premier .contact-item:hover { box-shadow: var(--shadow-md); transform: translateY(-5px); }
.tpl-premier .contact-icon {
    width: 54px; height: 54px; flex: 0 0 54px; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem;
    background: linear-gradient(135deg, var(--p-mid), var(--primary)); color: #fff;
}
.tpl-premier .contact-item strong { display: block; margin-bottom: 6px; font: 600 1.02rem var(--font-heading); color: var(--p-dark); }
.tpl-premier .contact-item p, .tpl-premier .contact-item a { font-size: .92rem; color: var(--muted); text-decoration: none; }
.tpl-premier .contact-item a:hover { color: var(--p-mid); }
.tpl-premier :is(.enquiry-form, .form-success) { grid-column: 1 / span 7; grid-row: 2 / span 2; align-self: start; height: auto; margin-top: 24px; padding: 42px; box-shadow: var(--shadow-md); }
.tpl-premier .enquiry-form:hover, .tpl-premier .form-success:hover { transform: none; }
.tpl-premier .enquiry-form input, .tpl-premier .enquiry-form textarea { border: 1.5px solid #e1e9f2; border-radius: 10px; padding: 13px 16px; font-size: .95rem; }
.tpl-premier .enquiry-form input:focus, .tpl-premier .enquiry-form textarea:focus {
    outline: none; border-color: var(--p-mid); box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--p-mid) 15%, transparent);
}
.tpl-premier .enquiry-form .btn { width: 100%; margin-top: 6px; }
.tpl-premier .hours-card {
    grid-column: 8 / span 5; grid-row: 2; margin: 24px 0 0 24px; padding: 32px; color: #fff;
    border-radius: var(--radius); background: linear-gradient(120deg, var(--p-dark), var(--p-mid));
}
.tpl-premier .hours-card h3 { color: #fff; font-size: 1.4rem; margin-bottom: 12px; }
.tpl-premier .hours-row { padding: 12px 0; border-color: rgb(255 255 255 / .15); }
.tpl-premier .hours-row span:first-child { color: rgb(255 255 255 / .8); }
.tpl-premier .hours-row span:last-child { color: var(--a-light); font-weight: 600; }
.tpl-premier .contact-details .map {
    grid-column: 8 / span 5; grid-row: 3; width: calc(100% - 24px); height: 380px; margin-left: 24px; border-radius: var(--radius);
    box-shadow: var(--shadow-md); filter: grayscale(15%) contrast(1.05);
}
/* Without a form, hours and map sit side by side under the cards. */
.tpl-premier .contact-grid:not(:has(.enquiry-form, .form-success)) .hours-card { grid-column: 1 / span 5; grid-row: auto; margin-left: 0; }
.tpl-premier .contact-grid:not(:has(.enquiry-form, .form-success)) .map { grid-column: auto / span 7; grid-row: auto; width: 100%; margin: 24px 0 0; }
.tpl-premier .contact-grid:not(:has(.hours-card)):not(:has(.enquiry-form, .form-success)) .map { grid-column: 1 / -1; }
@media (max-width: 991px) {
    .tpl-premier .contact-item { grid-column: span 6; }
    .tpl-premier :is(.enquiry-form, .form-success, .hours-card), .tpl-premier .contact-details .map,
    .tpl-premier .contact-grid:not(:has(.enquiry-form, .form-success)) :is(.hours-card, .map) { grid-column: 1 / -1; grid-row: auto; width: 100%; margin: 0; }
    .tpl-premier :is(.enquiry-form, .form-success) { order: 1; }
    .tpl-premier :is(.hours-card, .contact-details .map) { order: 2; }
}
@media (max-width: 600px) {
    .tpl-premier .contact-item { grid-column: 1 / -1; }
    .tpl-premier .enquiry-form { padding: 28px 20px; }
}

/* ---------- Footer ---------- */
.tpl-premier .site-footer { background: var(--p-dark); color: rgb(255 255 255 / .72); padding: 70px 0 0; }
.tpl-premier .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.5fr; gap: 48px; }
@media (max-width: 860px) { .tpl-premier .footer-grid { grid-template-columns: 1fr 1fr; } .tpl-premier .footer-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 560px) { .tpl-premier .footer-grid { grid-template-columns: 1fr; } }
.tpl-premier .site-footer h4 { color: #fff; font-size: 1.1rem; margin-bottom: 22px; }
.tpl-premier .site-footer p { color: rgb(255 255 255 / .65); }
.tpl-premier .footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; color: #fff; font: 700 1.25rem var(--font-heading); }
.tpl-premier .site-footer ul { list-style: none; padding: 0; margin: 0; }
.tpl-premier .site-footer li { margin-bottom: 12px; }
.tpl-premier .site-footer li a { color: rgb(255 255 255 / .65); font-size: .94rem; text-decoration: none; }
.tpl-premier .site-footer li a:hover { color: var(--a-light); padding-left: 4px; }
.tpl-premier .footer-contact-item { display: flex; gap: 12px; margin-bottom: 16px; font-size: .92rem; }
.tpl-premier .footer-contact-item i { color: var(--a-light); margin-top: 3px; }
.tpl-premier .footer-contact-item a { text-decoration: none; color: rgb(255 255 255 / .72); }
.tpl-premier .social-icons { display: flex; gap: 10px; margin-top: 20px; }
.tpl-premier .social-icons a {
    width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; text-decoration: none;
    background: rgb(255 255 255 / .08); color: #fff;
}
.tpl-premier .social-icons a:hover { background: var(--accent); color: var(--p-dark); transform: translateY(-4px); }
.tpl-premier .footer-bottom { margin-top: 40px; padding: 20px 16px; border-top: 1px solid rgb(255 255 255 / .1); text-align: center; font-size: .86rem; }

/* ---------- Back to top ---------- */
.tpl-premier .back-to-top {
    position: fixed; right: 30px; bottom: 30px; z-index: 999; width: 48px; height: 48px; border: 0; border-radius: 50%;
    display: grid; place-items: center; cursor: pointer; font-size: 1.1rem; color: #fff;
    background: linear-gradient(135deg, var(--p-mid), var(--primary)); box-shadow: var(--shadow-md);
    opacity: 0; visibility: hidden; transform: translateY(15px); transition: var(--ease);
}
.tpl-premier .back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.tpl-premier .back-to-top:hover { background: var(--accent); color: var(--p-dark); }

@media (prefers-reduced-motion: reduce) {
    .tpl-premier *, .tpl-premier *::before, .tpl-premier *::after { transition: none !important; }
}
