/* ==========================================================================
   Gee & Hayes: site custom styles
   Loaded from bricks-child/functions.php (handle: site-custom).
   Layout, spacing and colour live in Bricks global classes using
   Core Framework tokens. This file covers fonts, base typography and
   interaction states that are awkward to express in Bricks controls.
   ========================================================================== */

/* 1. Fonts (self-hosted, SIL OFL, latin subset, variable weight)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Bodoni Moda";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/bodoni-moda-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("../fonts/dm-sans-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --gh-font-heading: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --gh-font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* 2. Base typography
   -------------------------------------------------------------------------- */
body {
  font-family: var(--gh-font-body);
  font-weight: 300;
  font-size: var(--text-m);
  line-height: 1.4;
  letter-spacing: 0.025em;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--gh-font-heading);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0;
}

/* 3. Homepage canvas: the design sits on the brand sage throughout
   -------------------------------------------------------------------------- */
body.home {
  background-color: var(--primary);
}

/* 4. Buttons (shared pill style; colours/spacing are in the gh-btn classes)
   -------------------------------------------------------------------------- */
.gh-btn {
  font-family: var(--gh-font-heading);
  font-weight: 400;
  letter-spacing: 0;
  transition: transform 200ms ease, box-shadow 200ms ease,
    background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .gh-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.6rem 1.6rem var(--dark-20);
    background-color: var(--secondary-d-1);
    border-color: var(--secondary-d-1);
  }

  .gh-btn--outline:hover {
    background-color: var(--light);
    border-color: var(--light);
    color: var(--primary);
  }
}

.gh-btn:focus-visible {
  outline: 2px solid var(--light);
  outline-offset: 3px;
}

/* 5. Home / Intro: spacing between the two rich-text paragraphs
   -------------------------------------------------------------------------- */
.home-intro__description p {
  margin: 0;
}

.home-intro__description p + p {
  margin-top: 1.35em;
}

/* 6. Header (Bricks template: sticky + absolute over the hero)
   -------------------------------------------------------------------------- */
.site-header__menu .bricks-nav-menu > li > a,
.site-header__menu .bricks-mobile-menu > li > a,
.site-footer__menu .bricks-nav-menu > li > a {
  font-family: var(--gh-font-heading);
  text-transform: lowercase;
  transition: color 200ms ease;
}

.site-header__menu .bricks-nav-menu > li > a:focus-visible,
.site-footer__menu .bricks-nav-menu > li > a:focus-visible {
  outline: 2px solid var(--light);
  outline-offset: 4px;
}

#brx-header {
  transition: background-color 250ms ease, box-shadow 250ms ease;
}

/* Homepage: header floats over the hero and stays fixed while scrolling.
   Bricks' own sticky handles inner pages; .scrolling is added by Bricks. */
.home #brx-header.brx-sticky {
  position: fixed;
  top: var(--wp-admin--admin-bar--height, 0px);
  left: 0;
  right: 0;
  z-index: 999;
  background-color: transparent;
}

#brx-header.brx-sticky.scrolling {
  background-color: var(--primary);
  box-shadow: 0 0.4rem 1.6rem var(--dark-20);
}

#brx-header.brx-sticky.scrolling .site-header {
  padding-top: var(--space-xs);
  padding-bottom: var(--space-xs);
  transition: padding 250ms ease;
}

.site-header {
  transition: padding 250ms ease;
}

/* Inner pages have no dark hero behind the header, so give it the brand fill. */
body:not(.home) #brx-header {
  background-color: var(--primary);
}

/* 7. Services cards and slider arrows
   -------------------------------------------------------------------------- */
.card-home-services {
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.card-home-services__link {
  transition: color 200ms ease;
}

/* Design shows no pagination dots; the custom arrows drive the slider. */
.home-services__slider .splide__pagination {
  display: none;
}

.home-services__arrow {
  font: inherit;
  transition: background-color 200ms ease, border-color 200ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .card-home-services:hover {
    transform: translateY(-3px);
    box-shadow: 0 1.2rem 2.4rem var(--dark-20);
  }

  .card-home-services:hover .card-home-services__img {
    transform: scale(1.04);
  }

  .card-home-services__link:hover {
    color: var(--primary);
  }

  .home-services__arrow:hover {
    background-color: var(--secondary-l-4);
    border-color: var(--primary);
  }
}

.card-home-services:focus-within {
  outline: 2px solid var(--light);
  outline-offset: 3px;
}

.card-home-services__link:focus-visible {
  outline: none;
}

.home-services__arrow:focus-visible {
  outline: 2px solid var(--light);
  outline-offset: 3px;
}

/* 7b. Testimonials, gallery, booking CTA
   -------------------------------------------------------------------------- */
.home-testimonials__grid {
  list-style: none;
}

.card-home-testimonials__author {
  font-family: var(--gh-font-heading);
}

/* Vertical wordmark only where there is room beside the cards. */
.home-testimonials__wordmark {
  display: none;
}

@media (min-width: 1600px) {
  .home-testimonials__wordmark {
    display: block;
  }
}

@media (hover: hover) and (pointer: fine) {
  .gh-btn--sage:hover {
    background-color: var(--primary-d-1);
    border-color: var(--primary-d-1);
  }

  .home-gallery__gallery a:hover img {
    transform: scale(1.03);
  }
}

.home-gallery__gallery .bricks-layout-item {
  overflow: hidden;
}

.home-gallery__gallery img {
  transition: transform 400ms ease;
}

.home-gallery__gallery a:focus-visible {
  outline: 2px solid var(--light);
  outline-offset: -4px;
}

/* 8. Footer typography
   -------------------------------------------------------------------------- */
.site-footer__contact-info,
.site-footer__contact-link,
.site-footer__hours-heading,
.site-footer__hours-day,
.site-footer__hours-time {
  font-family: var(--gh-font-heading);
  letter-spacing: 0;
}

.site-footer__contact-link,
.site-footer__social-icon {
  transition: color 200ms ease, opacity 200ms ease;
}

.site-footer__contact-link:hover {
  color: var(--secondary-l-2);
}

.site-footer__social-icon:hover {
  opacity: 0.8;
}

.site-footer__credit-name {
  text-transform: none;
}

.site-footer__container-bot {
  transition: opacity 200ms ease;
}

.site-footer__container-bot:hover {
  opacity: 0.75;
}

.site-footer__container-bot:focus-visible {
  outline: 2px solid var(--light);
  outline-offset: 4px;
}

/* 9. Bricks FX tuning (driver lives in Bricks > Settings > Custom code)
   Library classes keep their defaults; values here are scoped to this
   site's BEM classes to keep the motion subtle.
   -------------------------------------------------------------------------- */

/* If JS never runs, load-in content must not stay invisible. */
html:not(.bfx-js) [class*="bfx-load_"] {
  opacity: 1;
}

/* Scroll effects start hidden until the driver measures them. */
html.bfx-js [class*="bfx-scroll_"],
html.bfx-js [class*="bfx-scrollx_"] {
  --bfx-progress: 0;
}

/* Per-element stagger, softer easing, and no retained end transform
   (so hover transforms on buttons/cards still work after the entrance). */
body [class*="bfx-load_"].bfx-load-active {
  animation-delay: var(--bfx-delay, 0s);
  animation-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1);
  animation-fill-mode: backwards;
}

/* Hero: play on page load, wherever it sits in the viewport. */
body .home-hero__heading,
body .home-hero__description,
body .home-hero__btn {
  --bfx-trigger-point: 100;
  --bfx-distance: 3.2rem;
  --bfx-duration: 0.9s;
}

body .home-hero__heading { --bfx-delay: 0.1s; }
body .home-hero__description { --bfx-delay: 0.25s; }
body .home-hero__btn { --bfx-delay: 0.4s; }

/* Section intros: short rise on scroll. */
body .home-intro__inner-container-info,
body .home-services__info-container,
body .home-testimonials__container-info,
body .home-cta__inner-container-info {
  --bfx-slide-distance: -4rem;
  --bfx-enter-start: 95;
  --bfx-enter-finish: 65;
}

body .home-intro__container-btn,
body .home-services__control-container,
body .home-testimonials__btn,
body .home-gallery__gallery,
body .home-cta__container-btn {
  --bfx-enter-start: 95;
  --bfx-enter-finish: 70;
}

/* Service cards: staggered rise once the row comes into view. */
body .card-home-services__wrapper {
  --bfx-trigger-point: 90;
  --bfx-distance: 3.2rem;
  --bfx-duration: 0.8s;
}

body .card-home-services__wrapper:nth-child(4n + 2) { --bfx-delay: 0.1s; }
body .card-home-services__wrapper:nth-child(4n + 3) { --bfx-delay: 0.2s; }
body .card-home-services__wrapper:nth-child(4n + 4) { --bfx-delay: 0.3s; }

/* Testimonial cards: same staggered rise. */
body .card-home-testimonials__wrapper {
  --bfx-trigger-point: 90;
  --bfx-distance: 3.2rem;
  --bfx-duration: 0.8s;
}

body .card-home-testimonials__wrapper:nth-child(2) { --bfx-delay: 0.12s; }
body .card-home-testimonials__wrapper:nth-child(3) { --bfx-delay: 0.24s; }

/* 10. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  /* !important: Bricks FX class CSS sets these on the same elements. */
  html [class*="bfx-load_"],
  html [class*="bfx-scroll_"],
  html [class*="bfx-scrollx_"] {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    animation: none !important;
  }

  .gh-btn,
  #brx-header,
  .card-home-services,
  .card-home-services__img,
  .home-services__arrow {
    transition: none;
  }

  .gh-btn:hover,
  .card-home-services:hover,
  .card-home-services:hover .card-home-services__img {
    transform: none;
  }
}

/* 11. Mobile menu pop-up: logo above the links, contact details below
   -------------------------------------------------------------------------- */
.brxe-nav-menu .bricks-mobile-menu-wrapper a.site-mobile-menu__logo {
  display: block;
  width: auto;
  padding: var(--space-l) var(--space-m) var(--space-m);
}

.site-mobile-menu__logo-img {
  display: block;
  width: 160px;
  height: auto;
}

.site-mobile-menu__contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin: var(--space-l) var(--space-m) 0;
  padding-top: var(--space-m);
  border-top: 1px solid hsla(0, 0%, 100%, 0.3);
  font-size: var(--text-m);
}

.brxe-nav-menu .bricks-mobile-menu-wrapper a.site-mobile-menu__contact-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  width: auto;
  color: var(--light);
  text-decoration: none;
  transition: color 0.2s ease;
}

.brxe-nav-menu .bricks-mobile-menu-wrapper a.site-mobile-menu__contact-link:hover,
.brxe-nav-menu .bricks-mobile-menu-wrapper a.site-mobile-menu__contact-link:focus-visible {
  color: var(--secondary-l-2);
}

.site-mobile-menu__contact-icon {
  flex-shrink: 0;
  width: 1.8rem;
  height: 1.8rem;
}
