/*
 * Breizh Cape 3.3.3 — homepage layout rebuilt against the exported Gutenberg markup.
 * Loaded after theme.css and responsive-hotfix.css.
 */
.bc-home { overflow-x: clip; }
.bc-home > .wp-block-group { min-width: 0; }
.bc-home .wp-block-columns { margin-bottom: 0; }

/* Header: switch to a compact dropdown before the full navigation runs out of room. */
@media (max-width: 1050px) {
  .bc-site-header { position: sticky; }
  .bc-header-inner { min-height: 76px; gap: 12px; }
  .bc-brand { flex: 0 1 190px; }
  .bc-brand-image, .custom-logo { max-width: 185px; max-height: 62px; }
  .bc-menu-toggle {
    display: flex !important; align-items: center; justify-content: center;
    width: 46px; height: 46px; margin-left: auto; flex: 0 0 46px;
    border: 1px solid rgba(30,57,67,.22); border-radius: 4px;
    background: transparent; position: relative; z-index: 102;
  }
  .bc-menu-toggle-lines { gap: 5px; }
  .bc-menu-toggle-lines i { width: 23px; height: 2px; }
  .bc-primary-navigation {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    z-index: 101; margin: 0; padding: 10px 22px 20px;
    background: #fffaf1; border-top: 1px solid #ded3c2;
    border-bottom: 1px solid #ded3c2; box-shadow: 0 12px 24px rgba(0,0,0,.12);
  }
  .bc-primary-navigation.is-open { display: block !important; }
  .bc-nav-list { display: grid !important; gap: 0 !important; }
  .bc-nav-list > li > a { display: block; padding: 13px 4px; font-size: 1rem; border-bottom: 1px solid rgba(30,57,67,.10); }
  .bc-nav-list .sub-menu { display: block; position: static; min-width: 0; padding: 0 0 0 16px; border: 0; box-shadow: none; background: transparent; }
  .bc-header-actions { display: none; }
}

/* Full-bleed hero: image is the background layer; copy sits transparently above it. */
.bc-home .bc-hero {
  position: relative; padding: 0 !important; margin: 0 !important;
  min-height: clamp(560px, 58vw, 760px); background: #17434a;
  overflow: hidden;
}
.bc-home .bc-hero-grid.wp-block-columns {
  position: relative; display: block !important; width: 100%;
  min-height: clamp(560px, 58vw, 760px); margin: 0 !important; padding: 0 !important;
}
.bc-home .bc-hero-grid > .wp-block-column { margin: 0 !important; }
.bc-home .bc-hero-grid > .bc-hero-media,
.bc-home .bc-hero-grid > .wp-block-column:nth-child(2) {
  position: absolute !important; inset: 0 !important; width: 100% !important;
  height: 100% !important; min-height: 0 !important; padding: 0 !important; z-index: 0;
}
.bc-home .bc-hero-media, .bc-home .bc-hero-image,
.bc-home .bc-hero-image.wp-block-image {
  position: absolute !important; inset: 0 !important; width: 100% !important;
  height: 100% !important; margin: 0 !important; overflow: hidden;
}
.bc-home .bc-hero-image img {
  display: block; position: absolute; inset: 0; width: 100% !important;
  height: 100% !important; max-width: none; object-fit: cover;
  object-position: center 55%; aspect-ratio: auto; border-radius: 0 !important;
  box-shadow: none !important; filter: none !important;
}
.bc-home .bc-hero-grid > .bc-hero-copy,
.bc-home .bc-hero-grid > .wp-block-column:first-child {
  position: relative !important; z-index: 2; display: flex !important;
  align-items: center; width: 100% !important; max-width: none !important;
  min-height: inherit; height: auto;
  background: transparent !important; margin: 0 !important;
}
.bc-home .bc-hero-copy { width: 100% !important; max-width: none !important; padding: clamp(34px,7vw,90px) max(24px,calc((100vw - 1180px)/2)) !important; background: transparent !important; }
.bc-home .bc-hero-copy > .bc-hero-panel { width: min(720px,100%); max-width: 720px; padding: 0 !important; background: transparent !important; border: 0 !important; box-shadow: none !important; }
.bc-home .bc-hero-copy .bc-eyebrow,
.bc-home .bc-hero-copy h1,
.bc-home .bc-hero-copy p,
.bc-home .bc-hero-copy .bc-lead {
  color: #fff !important;
  text-shadow: 0 2px 5px rgba(0,0,0,.92), 0 0 14px rgba(0,0,0,.68);
}
.bc-home .bc-hero-copy h1 {
  max-width: 720px; font-size: clamp(2.7rem,5.8vw,5rem);
  line-height: 1.02; margin: 0 0 18px;
}
.bc-home .bc-hero-copy .bc-lead { max-width: 560px; font-size: clamp(1rem,1.5vw,1.25rem); line-height: 1.5; }
.bc-home .bc-hero-copy .wp-block-buttons { margin-top: 22px; }
.bc-home .bc-hero-copy .wp-block-button__link { text-shadow: none; }

/* Real wave artwork: suppress the substitute inline SVG and use the supplied 2172x230 asset. */
.bc-home .bc-breton-wave {
  display: block !important; position: relative; z-index: 3; width: 100%;
  height: auto !important; aspect-ratio: 2172 / 230; margin: -1px 0 0 !important;
  padding: 0 !important; overflow: hidden;
  background-image: url("../images/breizh-cape-wave-divider.webp");
  background-repeat: no-repeat; background-position: center; background-size: 100% 100%;
}
.bc-home .bc-breton-wave svg { display: none !important; }

/* Four trust points. */
.bc-home .bc-trust-section { padding: 18px 0 38px !important; }
.bc-home .bc-trust-row.wp-block-columns {
  display: grid !important; grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 0 !important; margin: 0 !important;
}
.bc-home .bc-trust-row > .wp-block-column { min-width: 0; margin: 0 !important; }
.bc-home .bc-trust-item { height: 100%; min-height: 130px; padding: 20px 12px !important; }

/* Stay section. */
.bc-home .bc-home-stay-section { padding: clamp(38px,6vw,78px) 0 !important; }
.bc-home .bc-home-stay.wp-block-columns {
  display: grid !important; grid-template-columns: .9fr 1.1fr;
  gap: clamp(26px,5vw,64px) !important; align-items: center;
}
.bc-home .bc-home-stay > .wp-block-column { min-width: 0; margin: 0 !important; }
.bc-home .bc-home-stay-photo img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; }

/* Restaurant split: image and navy content meet cleanly. */
.bc-home .bc-feature-section { padding: 0 !important; margin: 0 !important; }
.bc-home .bc-feature-band.wp-block-columns {
  display: grid !important; grid-template-columns: 1fr 1fr;
  gap: 0 !important; align-items: stretch; margin: 0 !important;
  background: #17434a;
}
.bc-home .bc-feature-band > .wp-block-column { min-width: 0; margin: 0 !important; }
.bc-home .bc-feature-band .bc-photo { height: 100%; margin: 0 !important; }
.bc-home .bc-feature-band .bc-photo img {
  display: block; width: 100%; height: 100%; min-height: 420px;
  object-fit: cover; aspect-ratio: auto;
}
.bc-home .bc-feature-band .bc-feature-content {
  height: 100%; min-height: 420px; padding: clamp(28px,5vw,68px) !important;
}

/* Adventures: three cards on desktop. */
.bc-home .bc-home-belowfold { min-height: 0 !important; height: auto !important; padding: clamp(40px,6vw,76px) 0 !important; }
.bc-home .bc-home-belowfold > .bc-container > .wp-block-columns {
  display: grid !important; grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 18px !important; margin: 24px 0 0 !important;
}
.bc-home .bc-home-belowfold .wp-block-column { min-width: 0; min-height: 0; margin: 0 !important; }
.bc-home .bc-home-belowfold .bc-content-card { height: 100%; min-height: 0; padding: 22px; }

/* Discover is the section immediately after Adventures in the supplied Home export.
   Do not rely on :last-child: Gutenberg wrappers make that selector brittle. */
.bc-home .bc-home-belowfold + .bc-section {
  min-height: 0 !important; height: auto !important; margin: 0 !important;
  padding: clamp(38px,6vw,76px) 0 !important;
}
.bc-home .bc-home-belowfold + .bc-section > .bc-container { width: min(1180px,calc(100% - 48px)); margin-inline: auto; }
.bc-home .bc-home-belowfold + .bc-section .bc-split.wp-block-columns {
  display: grid !important; grid-template-columns: 1fr 1fr; gap: clamp(24px,5vw,64px) !important;
  align-items: center; margin: 0 !important;
}
.bc-home .bc-home-belowfold + .bc-section .bc-split > .wp-block-column { min-width: 0; margin: 0 !important; }
.bc-home .bc-home-belowfold + .bc-section .wp-block-image { margin: 0 !important; }
.bc-home .bc-home-belowfold + .bc-section .wp-block-image img {
  display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover;
}

/* Phone and small tablet. */
@media (max-width: 760px) {
  .bc-home .bc-hero, .bc-home .bc-hero-grid.wp-block-columns { min-height: 570px; }
  .bc-home .bc-hero-grid > .bc-hero-copy,
  .bc-home .bc-hero-grid > .wp-block-column:first-child {
    min-height: 570px; align-items: center;
  }
  .bc-home .bc-hero-copy { width: 100% !important; max-width: none !important; padding: 34px 22px !important; }
  .bc-home .bc-hero-copy > .bc-hero-panel { width: 100%; max-width: 560px; }
  .bc-home .bc-hero-copy h1 { font-size: clamp(2.2rem,8.8vw,3.3rem); }
  .bc-home .bc-hero-image img { object-position: 57% center; }
  .bc-home .bc-breton-wave { aspect-ratio: 2172 / 230; }
  .bc-home .bc-trust-section { padding: 12px 0 28px !important; }
  .bc-home .bc-trust-row.wp-block-columns { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .bc-home .bc-trust-item { min-height: 116px; padding: 14px 8px !important; }
  .bc-home .bc-home-stay-section { padding: 36px 0 !important; }
  .bc-home .bc-home-stay.wp-block-columns { grid-template-columns: 1fr; gap: 18px !important; }
  .bc-home .bc-home-stay-photo img { aspect-ratio: 16/9; }
  .bc-home .bc-feature-band.wp-block-columns { grid-template-columns: 1fr; }
  .bc-home .bc-feature-band .bc-photo img { min-height: 0; height: auto; aspect-ratio: 16/9; }
  .bc-home .bc-feature-band .bc-feature-content { min-height: 0; height: auto; padding: 30px 24px 34px !important; }
  .bc-home .bc-home-belowfold { padding: 38px 0 !important; }
  .bc-home .bc-home-belowfold > .bc-container > .wp-block-columns { grid-template-columns: 1fr; gap: 14px !important; }
  .bc-home .bc-home-belowfold + .bc-section { padding: 38px 0 !important; }
  .bc-home .bc-home-belowfold + .bc-section .bc-split.wp-block-columns { grid-template-columns: 1fr; gap: 18px !important; }
  .bc-home .bc-home-belowfold + .bc-section .bc-split > .wp-block-column:first-child { order: 0; }
  .bc-home .bc-home-belowfold + .bc-section .wp-block-image img { aspect-ratio: 16/9; }
}
@media (max-width: 390px) {
  .bc-home .bc-hero, .bc-home .bc-hero-grid.wp-block-columns,
  .bc-home .bc-hero-grid > .wp-block-column:first-child { min-height: 540px; }
  .bc-home .bc-hero-grid > .wp-block-column:first-child { padding: 26px 17px !important; }
  .bc-home .bc-hero-copy h1 { font-size: clamp(2rem,8.4vw,2.4rem); }
  .bc-home .bc-trust-item p:nth-child(2) strong { font-size: .95rem; }
}
