/**
 * Breathe with Shali — inner pages (hero, prose, 404, search)
 * Senior layout system: homepage width, equal hero padding, fluid type,
 * overflow-safe media/tables, consistent gutters across breakpoints.
 */

/* Shared gutters (aligned with homepage .wrap) */
:root {
  --bws-gutter: 32px;
  --bws-page-pad-y: 56px;
  --bws-page-pad-y-end: 90px;
  --bws-prose-size: 17px;
  --bws-prose-leading: 1.75;
}

/* ---- Page dusk hero ---- */
.bws-homepage .bws-page-hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 140% at 15% 10%, #3a2f6b 0%, var(--dusk) 45%, #201a42 100%);
  color: var(--cream);
  padding: 48px 0;
}

.bws-homepage .bws-page-hero__wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--bws-gutter);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
}

.bws-homepage .bws-page-hero__content {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.bws-homepage .bws-page-hero__eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--saffron);
  margin: 0 0 14px;
  padding: 0 8px;
}

.bws-homepage .bws-page-hero__title {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--cream);
  margin: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-wrap: balance;
}

/* Breadcrumbs */
.bws-homepage .bws-breadcrumbs {
  width: 100%;
  margin: 28px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid rgba(255, 248, 240, 0.12);
  flex: 0 0 auto;
}

.bws-homepage .bws-breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.bws-homepage .bws-breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  margin: 0;
  padding: 0;
  color: rgba(255, 248, 240, 0.7);
}

.bws-homepage .bws-breadcrumbs__sep {
  margin: 0 10px;
  opacity: 0.45;
  flex-shrink: 0;
}

.bws-homepage .bws-breadcrumbs__link {
  color: rgba(255, 248, 240, 0.78);
  text-decoration: none;
  transition: color .2s ease;
}

.bws-homepage .bws-breadcrumbs__link:hover,
.bws-homepage .bws-breadcrumbs__link:focus-visible {
  color: var(--cream);
}

.bws-homepage .bws-breadcrumbs__current {
  color: var(--saffron);
  overflow-wrap: anywhere;
}

/* ---- Page shell ---- */
.bws-page {
  padding: var(--bws-page-pad-y) 0 var(--bws-page-pad-y-end);
}

.bws-page__inner,
.bws-homepage .bws-page__inner.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--bws-gutter);
  box-sizing: border-box;
  width: 100%;
  overflow-x: clip;
}

.bws-page .bws-prose {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
}

/* ---- Prose / content area ---- */
.bws-prose {
  font-family: 'Manrope', sans-serif;
  font-size: var(--bws-prose-size);
  line-height: var(--bws-prose-leading);
  color: rgba(43, 34, 80, 0.88);
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.bws-prose > *:first-child {
  margin-top: 0;
}

.bws-prose > *:last-child {
  margin-bottom: 0;
}

.bws-prose h1,
.bws-prose h2,
.bws-prose h3,
.bws-prose h4,
.bws-prose h5,
.bws-prose h6 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  color: var(--dusk);
  line-height: 1.22;
  letter-spacing: -0.01em;
  margin: 1.85em 0 0.55em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.bws-prose h1 { font-size: clamp(28px, 3.4vw, 36px); }
.bws-prose h2 { font-size: clamp(24px, 2.8vw, 30px); }
.bws-prose h3 { font-size: clamp(20px, 2.3vw, 24px); }
.bws-prose h4 { font-size: clamp(18px, 2vw, 20px); }
.bws-prose h5 {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.bws-prose h6 {
  font-size: 13px;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral);
}

.bws-prose p {
  margin: 0 0 1.2em;
  max-width: 100%;
}

.bws-prose a {
  color: var(--teal-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color .2s ease;
}

.bws-prose a:hover,
.bws-prose a:focus-visible {
  color: var(--coral);
}

.bws-prose a:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
  border-radius: 2px;
}

.bws-prose strong,
.bws-prose b {
  font-weight: 700;
  color: var(--dusk);
}

.bws-prose em,
.bws-prose i {
  font-style: italic;
}

.bws-prose blockquote {
  margin: 1.6em 0;
  padding: 22px 28px;
  border-left: 3px solid var(--coral);
  background: var(--cream-deep);
  border-radius: 0 18px 18px 0;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: clamp(1.05em, 1.8vw, 1.18em);
  line-height: 1.5;
  color: var(--dusk);
}

.bws-prose blockquote p {
  margin: 0;
}

.bws-prose blockquote p + p {
  margin-top: 0.75em;
}

.bws-prose blockquote cite {
  display: block;
  margin-top: 12px;
  font-family: 'Manrope', sans-serif;
  font-style: normal;
  font-size: 0.72em;
  font-weight: 700;
  color: var(--teal-deep);
  letter-spacing: 0.02em;
}

.bws-prose ul,
.bws-prose ol {
  margin: 0 0 1.3em;
  padding-left: 1.4em;
}

.bws-prose ul { list-style: disc; }
.bws-prose ol { list-style: decimal; }

.bws-prose li {
  margin: 0.45em 0;
  padding-left: 0.25em;
}

.bws-prose li::marker {
  color: var(--coral);
  font-weight: 700;
}

.bws-prose li > ul,
.bws-prose li > ol {
  margin: 0.4em 0 0.5em;
}

.bws-prose ul ul,
.bws-prose ol ul {
  list-style: circle;
}

.bws-prose ul ul ul,
.bws-prose ol ul ul {
  list-style: square;
}

.bws-prose ol ol {
  list-style: lower-alpha;
}

.bws-prose ol ol ol {
  list-style: lower-roman;
}

.bws-prose hr {
  border: 0;
  height: 1px;
  background: rgba(43, 34, 80, 0.12);
  margin: 2.25em 0;
}

.bws-prose img,
.bws-prose video,
.bws-prose iframe,
.bws-prose figure {
  max-width: 100%;
  height: auto;
}

.bws-prose img {
  border-radius: 16px;
  display: block;
  margin: 1.5em 0;
}

.bws-prose figure {
  margin: 1.5em 0;
}

.bws-prose figcaption,
.bws-prose .wp-caption-text {
  margin-top: 0.6em;
  font-size: 0.88em;
  color: rgba(43, 34, 80, 0.6);
  line-height: 1.45;
}

.bws-prose .aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.bws-prose .alignleft {
  float: left;
  margin: 0.35em 1.25em 1em 0;
  max-width: 48%;
}

.bws-prose .alignright {
  float: right;
  margin: 0.35em 0 1em 1.25em;
  max-width: 48%;
}

/* Tables — scroll safely without breaking the page */
.bws-prose .wp-block-table,
.bws-prose figure.wp-block-table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5em 0;
  border-radius: 14px;
}

.bws-prose table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.95em;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
}

.bws-prose .wp-block-table table,
.bws-prose figure.wp-block-table table {
  margin: 0;
}

.bws-prose th,
.bws-prose td {
  border: 1px solid rgba(43, 34, 80, 0.12);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

.bws-prose th {
  background: var(--cream-deep);
  font-weight: 700;
  color: var(--dusk);
  white-space: nowrap;
}

.bws-prose code {
  font-size: 0.9em;
  background: var(--cream-deep);
  padding: 0.15em 0.45em;
  border-radius: 6px;
  word-break: break-word;
}

.bws-prose pre {
  background: var(--dusk);
  color: var(--cream);
  padding: 18px 20px;
  border-radius: 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  font-size: 0.88em;
  line-height: 1.5;
  margin: 1.5em 0;
  max-width: 100%;
}

.bws-prose pre code {
  background: transparent;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

/* WP page pagination */
.bws-prose .page-links,
.bws-page .page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 2em;
  padding-top: 1.25em;
  border-top: 1px solid rgba(43, 34, 80, 0.1);
  font-size: 14px;
  font-weight: 700;
  color: var(--dusk);
}

/* Clear floats after content */
.bws-prose::after {
  content: '';
  display: table;
  clear: both;
}

/* ---- 404 ---- */
.bws-404 {
  padding: 48px 0 100px;
  text-align: center;
}

.bws-404__inner,
.bws-homepage .bws-404__inner.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--bws-gutter);
  box-sizing: border-box;
}

.bws-404__text {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(43, 34, 80, 0.72);
  margin: 0 auto 32px;
  max-width: 34em;
}

.bws-404__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 40px;
}

.bws-404__search {
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
}

/* Search — input left, icon right */
.bws-homepage .bws-search-form.search-form,
.bws-homepage .bws-search-form {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  position: relative;
  background: #fff;
  border: 1.5px solid rgba(43, 34, 80, 0.16);
  border-radius: 100px;
  overflow: hidden;
  box-shadow: 0 10px 28px -18px rgba(43, 34, 80, 0.35);
}

.bws-homepage .bws-search-form__label,
.bws-homepage .bws-search-form .screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bws-homepage .bws-search-form__input,
.bws-homepage .bws-search-form .search-field {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  margin: 0;
  padding: 14px 12px 14px 22px !important;
  padding-inline-start: 22px !important;
  padding-inline-end: 12px !important;
  border: 0 !important;
  background: transparent;
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  line-height: 1.4;
  color: var(--dusk);
  box-shadow: none;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  order: 1;
}

.bws-homepage .bws-search-form__input::placeholder {
  color: rgba(43, 34, 80, 0.45);
}

.bws-homepage .bws-search-form__input::-webkit-search-decoration,
.bws-homepage .bws-search-form__input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.bws-homepage .bws-search-form:focus-within {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(255, 111, 97, 0.15);
}

.bws-homepage .bws-search-form__submit,
.bws-homepage .bws-search-form .search-submit {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: static !important;
  inset: auto !important;
  top: auto !important;
  inset-inline-start: auto !important;
  width: 48px;
  height: 48px;
  margin: 4px 4px 4px 0;
  padding: 0;
  border: none !important;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--coral), var(--coral-soft));
  color: #fff !important;
  cursor: pointer;
  box-shadow: 0 8px 18px -8px rgba(255, 111, 97, 0.55);
  transition: transform .2s ease;
  order: 2;
}

.bws-homepage .bws-search-form__submit:hover,
.bws-homepage .bws-search-form .search-submit:hover {
  transform: scale(1.04);
}

.bws-homepage .bws-search-form__submit svg,
.bws-homepage .bws-search-form .search-submit svg {
  display: block;
  width: 18px;
  height: 18px;
  stroke: #fff;
}

/* ---- Search results page ---- */
/* Reset Hello Biz search layout (flex + 60px padding) */
body.search .site-main,
.bws-homepage.search .site-main {
  display: block;
  gap: 0;
  padding: 0;
  max-width: none;
  width: 100%;
  margin-inline: 0;
}

body.search .bws-search.site-main,
.bws-homepage.search .bws-search.site-main {
  padding: var(--bws-page-pad-y) 0 var(--bws-page-pad-y-end);
}

.bws-search__inner,
.bws-homepage .bws-search__inner.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--bws-gutter);
  box-sizing: border-box;
  width: 100%;
}

.bws-search__toolbar {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 380px);
  gap: 24px 40px;
  align-items: center;
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(43, 34, 80, 0.1);
}

.bws-search__count {
  margin: 0;
  font-family: 'Fraunces', serif;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 600;
  line-height: 1.3;
  color: var(--dusk);
}

.bws-search__form-wrap {
  width: 100%;
  max-width: 380px;
  margin-left: auto;
}

.bws-search__results {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.bws-search-card {
  background: #fff;
  border: 1px solid rgba(43, 34, 80, 0.1);
  border-radius: 22px;
  padding: 28px 30px;
  box-shadow: 0 16px 36px -28px rgba(43, 34, 80, 0.35);
  transition: transform .25s ease, box-shadow .25s ease;
}

.bws-search-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px -26px rgba(43, 34, 80, 0.4);
}

.bws-search-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bws-search-card__type {
  color: var(--coral);
}

.bws-search-card__date {
  color: rgba(43, 34, 80, 0.45);
  letter-spacing: 0.02em;
  text-transform: none;
  font-weight: 600;
}

.bws-search-card__title {
  font-family: 'Fraunces', serif;
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 10px;
  color: var(--dusk);
}

.bws-search-card__title a {
  color: inherit;
  text-decoration: none;
}

.bws-search-card__title a:hover,
.bws-search-card__title a:focus-visible {
  color: var(--coral);
}

.bws-search-card__excerpt {
  margin: 0 0 16px;
  font-size: 15.5px;
  line-height: 1.65;
  color: rgba(43, 34, 80, 0.72);
}

.bws-search-card__excerpt p {
  margin: 0;
}

.bws-search-card__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--teal-deep);
  text-decoration: none;
}

.bws-search-card__link:hover {
  color: var(--coral);
}

.bws-search__empty {
  text-align: center;
  max-width: 520px;
  margin: 12px auto 0;
  padding: 20px 0 8px;
}

.bws-search__empty-text {
  margin: 0 0 28px;
  font-size: 17px;
  line-height: 1.65;
  color: rgba(43, 34, 80, 0.72);
}

.bws-search__empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.bws-homepage .navigation.pagination,
.bws-homepage .bws-pagination,
.bws-search .navigation {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.bws-homepage .navigation .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.bws-homepage .navigation .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 100px;
  border: 1px solid rgba(43, 34, 80, 0.12);
  background: #fff;
  color: var(--dusk);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.bws-homepage .navigation .page-numbers.current,
.bws-homepage .navigation .page-numbers:hover {
  background: var(--dusk);
  border-color: var(--dusk);
  color: var(--cream);
}

/* ==========================================================================
   Responsive breakpoints
   ========================================================================== */

/* Large tablet ≤980 */
@media (max-width: 980px) {
  :root {
    --bws-gutter: 28px;
    --bws-page-pad-y: 48px;
    --bws-page-pad-y-end: 80px;
  }

  .bws-homepage .bws-page-hero {
    padding: 44px 0;
  }

  .bws-homepage .bws-page-hero__wrap {
    min-height: 180px;
  }

  .bws-homepage .bws-breadcrumbs {
    margin-top: 24px;
    padding-top: 16px;
  }
}

/* Tablet / large phone ≤768 */
@media (max-width: 768px) {
  :root {
    --bws-gutter: 24px;
    --bws-page-pad-y: 40px;
    --bws-page-pad-y-end: 72px;
    --bws-prose-size: 16.5px;
    --bws-prose-leading: 1.7;
  }

  .bws-homepage .bws-page-hero {
    padding: 40px 0;
  }

  .bws-homepage .bws-page-hero__wrap {
    min-height: 168px;
  }

  .bws-homepage .bws-page-hero__title {
    font-size: clamp(28px, 6.5vw, 40px);
  }

  .bws-homepage .bws-page-hero__eyebrow {
    font-size: 12px;
    letter-spacing: 0.14em;
    margin-bottom: 12px;
  }

  .bws-homepage .bws-breadcrumbs {
    margin-top: 22px;
  }

  .bws-homepage .bws-breadcrumbs__list {
    row-gap: 6px;
    font-size: 12.5px;
  }

  .bws-prose blockquote {
    padding: 18px 20px;
  }

  .bws-prose table {
    min-width: 460px;
    font-size: 0.92em;
  }

  .bws-prose th,
  .bws-prose td {
    padding: 10px 12px;
  }

  .bws-prose .alignleft,
  .bws-prose .alignright {
    float: none;
    display: block;
    max-width: 100%;
    margin: 1.25em auto;
  }

  .bws-404 {
    padding: 40px 0 80px;
  }

  .bws-search__toolbar {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 32px;
    padding-bottom: 22px;
  }

  .bws-search__form-wrap {
    max-width: 100%;
    margin-left: 0;
  }

  .bws-search-card {
    padding: 24px;
  }
}

/* Mobile ≤600 */
@media (max-width: 600px) {
  :root {
    --bws-gutter: 18px;
    --bws-page-pad-y: 32px;
    --bws-page-pad-y-end: 64px;
    --bws-prose-size: 16px;
    --bws-prose-leading: 1.68;
  }

  .bws-homepage .bws-page-hero {
    padding: 36px 0;
  }

  .bws-homepage .bws-page-hero__wrap {
    min-height: 150px;
  }

  .bws-homepage .bws-page-hero__content {
    max-width: 100%;
  }

  .bws-homepage .bws-page-hero__title {
    font-size: clamp(26px, 8vw, 34px);
  }

  .bws-homepage .bws-page-hero__eyebrow {
    font-size: 11px;
    letter-spacing: 0.12em;
    margin-bottom: 10px;
  }

  .bws-homepage .bws-breadcrumbs {
    margin-top: 20px;
    padding-top: 14px;
  }

  .bws-homepage .bws-breadcrumbs__list {
    font-size: 12px;
  }

  .bws-homepage .bws-breadcrumbs__sep {
    margin: 0 6px;
  }

  .bws-prose h1 { font-size: clamp(24px, 6vw, 30px); }
  .bws-prose h2 { font-size: clamp(21px, 5vw, 26px); }
  .bws-prose h3 { font-size: clamp(18px, 4.5vw, 22px); }
  .bws-prose h4 { font-size: 17px; }

  .bws-prose ul,
  .bws-prose ol {
    padding-left: 1.15em;
  }

  .bws-prose li {
    padding-left: 0.15em;
  }

  .bws-prose blockquote {
    padding: 16px;
    border-radius: 0 14px 14px 0;
    margin-left: 0;
    margin-right: 0;
  }

  .bws-prose img {
    border-radius: 14px;
    margin: 1.25em 0;
  }

  .bws-prose table {
    min-width: 420px;
    font-size: 0.88em;
  }

  .bws-prose th,
  .bws-prose td {
    padding: 9px 10px;
  }

  .bws-prose pre {
    padding: 14px 14px;
    border-radius: 12px;
    font-size: 0.82em;
  }

  .bws-404 {
    padding: 32px 0 64px;
  }

  .bws-404__text {
    font-size: 15.5px;
    margin-bottom: 28px;
  }

  .bws-404__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .bws-404__actions .btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }

  .bws-search__empty-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .bws-search__empty-actions .btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }

  .bws-search-card {
    border-radius: 18px;
    padding: 22px 20px;
  }

  .bws-homepage .bws-search-form__input,
  .bws-homepage .bws-search-form .search-field {
    padding: 12px 10px 12px 18px !important;
    padding-inline-start: 18px !important;
    font-size: 14.5px;
  }

  .bws-homepage .bws-search-form__submit,
  .bws-homepage .bws-search-form .search-submit {
    width: 44px;
    height: 44px;
  }
}

/* Small phones ≤400 */
@media (max-width: 400px) {
  :root {
    --bws-gutter: 16px;
  }

  .bws-homepage .bws-page-hero {
    padding: 32px 0;
  }

  .bws-homepage .bws-page-hero__wrap {
    min-height: 140px;
  }

  .bws-homepage .bws-page-hero__title {
    font-size: 24px;
  }

  .bws-prose ul,
  .bws-prose ol {
    padding-left: 1.05em;
  }

  .bws-prose table {
    min-width: 360px;
  }
}

/* Safe areas (notched devices) */
@supports (padding: max(0px)) {
  .bws-homepage .bws-page-hero__wrap,
  .bws-page__inner,
  .bws-homepage .bws-page__inner.wrap,
  .bws-404__inner,
  .bws-homepage .bws-404__inner.wrap,
  .bws-search__inner,
  .bws-homepage .bws-search__inner.wrap {
    padding-left: max(var(--bws-gutter), env(safe-area-inset-left));
    padding-right: max(var(--bws-gutter), env(safe-area-inset-right));
  }
}

/* Landscape short screens */
@media (max-height: 480px) and (orientation: landscape) {
  .bws-homepage .bws-page-hero {
    padding: 28px 0;
  }

  .bws-homepage .bws-page-hero__wrap {
    min-height: 0;
  }

  .bws-homepage .bws-breadcrumbs {
    margin-top: 16px;
    padding-top: 12px;
  }
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .bws-homepage .bws-search-form__submit,
  .bws-prose a {
    transition: none;
  }

  .bws-homepage .bws-search-form__submit:hover {
    transform: none;
  }
}

/* =========================================================
   Contact page — layout + WPForms brand skin
   ========================================================= */

.bws-homepage .bws-page--contact {
  padding: 0;
  background:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(195, 180, 234, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(46, 196, 182, 0.1), transparent 50%),
    var(--cream);
}

.bws-homepage .bws-contact {
  padding: var(--bws-page-pad-y) 0 0;
}

/* Contact only — avoid stacked section + page bottom gaps */
.bws-homepage .bws-page--contact .bws-contact.bws-section {
  padding-bottom: 0;
}

.bws-homepage .bws-contact__wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--bws-gutter);
}

.bws-homepage .bws-contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(36px, 5vw, 64px);
  align-items: start;
}

.bws-homepage .bws-contact__aside {
  position: sticky;
  top: 96px;
}

.bws-homepage .bws-contact__heading {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.15;
  color: var(--dusk);
  margin: 12px 0 16px;
  text-wrap: balance;
}

.bws-homepage .bws-contact__intro {
  margin: 0 0 32px;
  font-size: 17px;
  line-height: 1.7;
  color: rgba(43, 34, 80, 0.78);
  max-width: 36em;
}

.bws-homepage .bws-contact__details {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.bws-homepage .bws-contact__details li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 18px;
  border-top: 1px solid rgba(43, 34, 80, 0.1);
}

.bws-homepage .bws-contact__details li:first-child {
  padding-top: 0;
  border-top: none;
}

.bws-homepage .bws-contact__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral);
}

.bws-homepage .bws-contact__value {
  font-size: 16px;
  line-height: 1.55;
  color: var(--dusk);
  text-decoration: none;
}

.bws-homepage a.bws-contact__value {
  color: var(--dusk);
  text-decoration: none;
  transition: color 0.2s ease;
}

.bws-homepage a.bws-contact__value:hover {
  color: var(--coral);
}

.bws-homepage .bws-contact__form-panel {
  background: #fff;
  border: 1px solid rgba(43, 34, 80, 0.08);
  border-radius: 24px;
  padding: clamp(24px, 3.5vw, 40px);
  box-shadow: 0 24px 48px -28px rgba(43, 34, 80, 0.28);
}

.bws-homepage .bws-contact__form-missing {
  margin: 0;
  color: rgba(43, 34, 80, 0.7);
}

/* WPForms — two-column fields + full-width message */
.bws-homepage .bws-contact__form .wpforms-container {
  margin: 0;
}

.bws-homepage .bws-contact__form .wpforms-form {
  display: block;
}

.bws-homepage .bws-contact__form .wpforms-field {
  padding: 0 0 18px !important;
  margin: 0 !important;
}

.bws-homepage .bws-contact__form .wpforms-field-label {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dusk);
  margin: 0 0 8px !important;
}

.bws-homepage .bws-contact__form .wpforms-required-label {
  color: var(--coral);
}

.bws-homepage .bws-contact__form input.wpforms-field-large,
.bws-homepage .bws-contact__form textarea.wpforms-field-large,
.bws-homepage .bws-contact__form .wpforms-field input[type="text"],
.bws-homepage .bws-contact__form .wpforms-field input[type="email"],
.bws-homepage .bws-contact__form .wpforms-field input[type="tel"],
.bws-homepage .bws-contact__form .wpforms-field textarea {
  width: 100% !important;
  max-width: 100% !important;
  font-family: 'Manrope', sans-serif !important;
  font-size: 16px !important;
  line-height: 1.45 !important;
  color: var(--dusk) !important;
  background: var(--cream) !important;
  border: 1.5px solid rgba(43, 34, 80, 0.14) !important;
  border-radius: 14px !important;
  padding: 14px 16px !important;
  box-shadow: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.bws-homepage .bws-contact__form .wpforms-field textarea {
  min-height: 148px;
  resize: vertical;
}

.bws-homepage .bws-contact__form .wpforms-field input:focus,
.bws-homepage .bws-contact__form .wpforms-field textarea:focus {
  outline: none !important;
  border-color: var(--teal) !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(46, 196, 182, 0.18) !important;
}

.bws-homepage .bws-contact__form .wpforms-field input::placeholder,
.bws-homepage .bws-contact__form .wpforms-field textarea::placeholder {
  color: rgba(43, 34, 80, 0.42);
}

/* Half-width rows (WPForms layout classes) */
.bws-homepage .bws-contact__form .wpforms-field.wpforms-one-half {
  width: 48% !important;
  float: left;
  clear: none;
}

.bws-homepage .bws-contact__form .wpforms-field.wpforms-one-half.wpforms-first {
  clear: both;
  margin-right: 4% !important;
}

.bws-homepage .bws-contact__form .wpforms-field-textarea,
.bws-homepage .bws-contact__form .wpforms-field:not(.wpforms-one-half) {
  width: 100% !important;
  float: none;
  clear: both;
}

.bws-homepage .bws-contact__form .wpforms-submit-container {
  clear: both;
  padding: 8px 0 0 !important;
  margin: 0 !important;
}

.bws-homepage .bws-contact__form .wpforms-submit {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 15px 32px !important;
  border: none !important;
  border-radius: 100px !important;
  font-family: 'Manrope', sans-serif !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  letter-spacing: 0.02em;
  color: #fff !important;
  background: linear-gradient(135deg, var(--coral), var(--coral-soft)) !important;
  box-shadow: 0 10px 24px -8px rgba(255, 111, 97, 0.55);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bws-homepage .bws-contact__form .wpforms-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -8px rgba(255, 111, 97, 0.6);
}

.bws-homepage .bws-contact__form .wpforms-confirmation-container-full,
.bws-homepage .bws-contact__form .wpforms-confirmation-container {
  background: rgba(46, 196, 182, 0.1) !important;
  border: 1px solid rgba(46, 196, 182, 0.35) !important;
  border-radius: 16px !important;
  color: var(--dusk) !important;
  padding: 18px 20px !important;
}

.bws-homepage .bws-contact__form .wpforms-error,
.bws-homepage .bws-contact__form label.wpforms-error {
  color: #c0392b !important;
  font-size: 13px !important;
}

.bws-homepage .bws-contact__form .wpforms-has-error input,
.bws-homepage .bws-contact__form .wpforms-has-error textarea {
  border-color: #c0392b !important;
}

/* Map band — anchors the address below the form */
.bws-homepage .bws-contact-map {
  margin-top: clamp(48px, 7vw, 80px);
  margin-bottom: 0;
  padding-top: clamp(36px, 5vw, 56px);
  padding-bottom: clamp(40px, 5vw, 64px);
  border-top: 1px solid rgba(43, 34, 80, 0.08);
}

.bws-homepage .bws-contact-map__wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--bws-gutter);
}

.bws-homepage .bws-contact-map__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.bws-homepage .bws-contact-map__heading {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
  color: var(--dusk);
  margin: 10px 0 10px;
  text-wrap: balance;
}

.bws-homepage .bws-contact-map__address {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(43, 34, 80, 0.72);
}

.bws-homepage .bws-contact-map__directions {
  flex-shrink: 0;
  white-space: nowrap;
}

.bws-homepage .bws-contact-map__frame {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(43, 34, 80, 0.08);
  box-shadow: 0 24px 48px -28px rgba(43, 34, 80, 0.28);
  background: var(--cream-deep);
  aspect-ratio: 21 / 9;
  min-height: 280px;
}

.bws-homepage .bws-contact-map__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: saturate(0.92) contrast(1.02);
}

@media (max-width: 900px) {
  .bws-homepage .bws-contact__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .bws-homepage .bws-contact__aside {
    position: static;
  }

  .bws-homepage .bws-contact-map__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .bws-homepage .bws-contact-map__frame {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 640px) {
  .bws-homepage .bws-contact {
    padding-top: 36px;
  }

  .bws-homepage .bws-contact__form-panel {
    border-radius: 18px;
    padding: 20px 16px;
  }

  .bws-homepage .bws-contact__form .wpforms-field.wpforms-one-half,
  .bws-homepage .bws-contact__form .wpforms-field.wpforms-one-half.wpforms-first {
    width: 100% !important;
    float: none;
    margin-right: 0 !important;
  }

  .bws-homepage .bws-contact__form .wpforms-submit {
    width: 100%;
  }

  .bws-homepage .bws-contact-map {
    margin-top: 40px;
    padding-top: 28px;
  }

  .bws-homepage .bws-contact-map__frame {
    border-radius: 18px;
    aspect-ratio: 4 / 3;
    min-height: 240px;
  }

  .bws-homepage .bws-contact-map__directions {
    width: 100%;
    justify-content: center;
  }
}

.bws-homepage .bws-contact-page__elementor .elementor-section.elementor-section-boxed > .elementor-container {
  max-width: var(--max);
}

