/* Brand Hyve additions to the imported Elementor design.
   1. Sections for content that did not exist on the WordPress site (FAQs, service areas, 404).
      Values are taken from the Elementor pages so new content matches them.
   2. Accessibility corrections (see the end of the file). */

:root {
  --bh-gold: #ffb700;
  --bh-gold-deep: #c8930b;
  --bh-line: rgba(255, 255, 255, .68);
}

/* ---- 1. New sections -------------------------------------------------------------------- */
.bh-page, .bh-section { background: #000; color: #fff; }
.bh-section { padding: 0 clamp(20px, 6.2vw, 90px); }
.bh-inner { max-width: 1340px; margin: 0 auto; padding: clamp(40px, 6vw, 80px) 0; }
.bh-section + .bh-section .bh-inner { padding-top: 0; }
.bh-narrow { max-width: 900px; }
.bh-center { text-align: center; }

.bh-section, .bh-title { font-family: "Avenir Next", sans-serif; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.8; letter-spacing: -.2px; }
.bh-section h2, .bh-section h3, .bh-title h1 { font-family: "New York", sans-serif; font-weight: 600; color: #fff; margin: 0 0 .7em; }
.bh-section h2 { font-size: clamp(24px, 2.6vw, 30px); line-height: 1.4; }
.bh-section h3 { font-family: "Avenir Next", sans-serif; font-size: clamp(20px, 1.9vw, 25px); line-height: 1.2; }
.bh-section p { margin: 0 0 .9em; }
.bh-section a { color: var(--bh-gold); text-decoration: underline; text-underline-offset: 3px; }
.bh-section a:hover { color: #fff; }
/* Links added to imported pages (the theme default is a pink that is too dark on black). */
a.bh-link { color: var(--bh-gold); text-decoration: underline; text-underline-offset: 3px; }
a.bh-link:hover { color: #fff; }

/* Page title band, as on the category pages: black, title low in the band, gold rule beneath. */
.bh-title { background: #000; color: #fff; text-align: center; padding: clamp(150px, 16vw, 210px) clamp(20px, 6.2vw, 90px) clamp(60px, 8vw, 106px); border-bottom: 10px solid var(--bh-gold); }
.bh-title h1 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.2; margin: 0; }
.bh-crumbs { font-size: 15px; line-height: 1.6; margin-bottom: 18px; color: #fff; }
.bh-crumbs a { color: var(--bh-gold); }

/* Outlined button, as "Book Appointment" in page content. */
.bh-section a.bh-btn { display: inline-block; min-width: 200px; padding: 16px 34px; border: 1px solid #fff; border-radius: 4px; color: #fff; font-size: 18px; font-weight: 500; line-height: 1; text-align: center; text-decoration: none; margin: 6px 4px; }
.bh-section a.bh-btn:hover, .bh-section a.bh-btn:focus-visible { background: var(--bh-gold-deep); border-color: var(--bh-gold-deep); color: #000; }

/* Cards, as "Our Specials" on the home page. */
.bh-cards { display: grid; gap: 30px; margin: 0 0 40px; padding: 0; list-style: none; }
.bh-cards--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bh-cards--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bh-card { margin: 0; padding: 30px; border: 1px solid var(--bh-line); border-radius: 18px; display: flex; flex-direction: column; gap: 20px; }
.bh-card img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; }
.bh-card figcaption { display: flex; flex-direction: column; flex: 1; color: #fff; font-style: normal; }
.bh-card p { font-size: 16px; line-height: 1.75; }
.bh-credit { margin-top: auto; font-size: 13px; line-height: 1.5; color: #d9d9d9; }
.bh-links .bh-card { padding: 0; }
.bh-links .bh-card a { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 30px; border-radius: 18px; color: #fff; text-decoration: none; }
.bh-links .bh-card a:hover { background: rgba(255, 255, 255, .08); }
.bh-links .bh-card strong { font-size: clamp(20px, 1.9vw, 25px); font-weight: 600; line-height: 1.2; }
.bh-links .bh-card span { font-size: 16px; line-height: 1.6; }
.bh-links .bh-card .bh-more { margin-top: auto; color: var(--bh-gold); text-decoration: underline; text-underline-offset: 3px; }

.bh-split { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(30px, 5vw, 70px); }
.bh-section address { font-style: normal; margin-bottom: .9em; }

.bh-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0; padding: 0; list-style: none; }
.bh-section .bh-pills a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 20px; border: 1px solid var(--bh-line); border-radius: 999px; color: #fff; font-size: 16px; text-decoration: none; }
.bh-section .bh-pills a:hover { border-color: var(--bh-gold); color: var(--bh-gold); }

/* FAQ accordion. */
.bh-faq details { border-bottom: 1px solid var(--bh-line); text-align: left; }
.bh-faq summary { cursor: pointer; padding: 16px 4px; font-weight: 600; }
.bh-faq summary:hover { color: var(--bh-gold); }
.bh-faq details p { padding: 0 4px 16px; margin: 0; }
.bh-faq h2 { text-align: center; }
.bh-split .bh-faq h2 { text-align: left; }

@media (max-width: 1024px) {
  .bh-cards--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .bh-cards--two, .bh-cards--three, .bh-split { grid-template-columns: 1fr; }
  .bh-card, .bh-links .bh-card a { padding: 20px; }
}

/* ---- 2. Accessibility ------------------------------------------------------------------- */
/* Page title printed by the theme above Elementor content: now a <p> (the page has its own
   <h1>), kept looking as it did. */
.page-header p.entry-title { font-family: "New York", sans-serif; font-size: 2.5rem; font-weight: 500; line-height: 1.2; color: #333; margin-block: .5rem 1rem; }

/* Keyboard focus is visible on both the black and the white parts of the design. !important
   because Elementor's own a:focus-visible rules set a black outline. */
:focus-visible { outline: 2px solid #fff !important; outline-offset: 2px !important; box-shadow: 0 0 0 4px #000 !important; }

/* Breadcrumb links are told apart from the text around them by more than colour. */
.bh-crumbs a { text-decoration: underline; text-underline-offset: 3px; }

/* In-page links land below the header, which overlays the top of the page. */
html { scroll-padding-top: 120px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Text and icons on the gold (#c8930b) backgrounds are black: white on that gold is 2.75:1,
   black is 7.6:1. This is the one deliberate change to the look of the WordPress site. */
/* (the button turns black on hover and focus, where its text stays white) */
.elementor-location-header .elementor-button:not(:hover):not(:focus),
.elementor-location-header .elementor-nav-menu--dropdown a.elementor-item-active,
.elementor-location-header .elementor-nav-menu--dropdown a.highlighted,
.elementor-location-header .elementor-nav-menu--dropdown a:hover,
.elementor-location-header .elementor-nav-menu--dropdown a:focus,
.elementor-location-header .elementor-menu-toggle:not(:hover):not(:focus) { color: #000 !important; fill: #000 !important; }
.elementor-location-header .elementor-menu-toggle:not(:hover):not(:focus) svg { fill: #000 !important; }

/* Lists in new sections (accessibility statement). */
.bh-section ul:not(.bh-cards):not(.bh-pills) { margin: 0 0 .9em; padding-left: 1.3em; }
.bh-section ul:not(.bh-cards):not(.bh-pills) li { margin-bottom: .4em; }
