/* House of Honey: shared styles for the responsive site.
 *
 * Colours, fonts and sizes were measured from the live Wix site
 * (houseofhoneyportugal.com) so the rebuild keeps its look. Wix lays pages out
 * on a 980px canvas; here that is the content column on desktop, and every
 * section stacks to one column on phones (<= 640px). The brand has one look,
 * so there is no dark theme. */

:root {
  color-scheme: light;
  --mint: #5cf0ba;
  --mint-dark: #3ee0a4;
  --honey: #fbcc6b;
  --ink: #181818;
  --black: #000;
  --white: #fff;
  --rule: #d8d8d8;
  --lavender: #8f84d9;
  --green: #15843c;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --brand: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --col: 980px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --h1: clamp(36px, 6.25vw, 80px);
  --h2: clamp(34px, 6.2vw, 56px);
  --h3: clamp(26px, 4vw, 38px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font: 400 18px/1.75 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.2; text-wrap: balance; color: var(--black); }
h1 { font-size: var(--h2); }
h2 { font-size: var(--h2); }
p { margin: 0; }
p + p { margin-top: 1em; }
:focus-visible { outline: 2px solid var(--black); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Layout helpers */
.wrap { width: 100%; max-width: calc(var(--col) + 32px); margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.wrap--wide { max-width: 1312px; }
.wrap--narrow { max-width: 792px; }
.center { text-align: center; }
.lede { max-width: 660px; margin: 18px auto 0; text-align: center; }
.section { padding-block: 70px; }
.section-title { text-align: center; }
.section-title + * { margin-top: 40px; }

/* Buttons, as on the live site */
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 40px; padding: 8px 30px;
  font: 400 16px/1.2 var(--sans); letter-spacing: .03em; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; transition: background .2s, color .2s;
}
.btn--dark { background: #282626; color: var(--white); }
.btn--dark:hover { background: #4a4646; }
.btn--black { background: var(--black); color: var(--white); }
.btn--black:hover { background: #333; }
.btn--line { background: transparent; color: var(--black); border-color: var(--black); }
.btn--line:hover { background: var(--black); color: var(--white); }
.btn--ghost { background: transparent; color: var(--white); border-color: var(--white); font-weight: 700; }
.btn--ghost:hover { background: var(--white); color: var(--black); }
.btn--mint { background: var(--mint); color: var(--black); }
.btn--mint:hover { background: var(--mint-dark); }
.btn--caps { text-transform: uppercase; }

/* Preview note */

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--white); box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.site-header__in { display: flex; align-items: center; gap: 24px; min-height: 100px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand img { width: 62px; }
.brand__name { font: 400 19px/1.3 var(--brand); letter-spacing: .06em; display: block; }
.brand__tag { font: 400 12px/1.3 var(--brand); display: block; }
.nav { margin-left: auto; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.nav__cta { font: 400 13px/1 var(--sans); background: var(--mint); color: var(--black); text-decoration: none; padding: 6px 10px; box-shadow: 0 6px 10px -6px rgba(0,0,0,.45); }
.nav__list { display: flex; list-style: none; margin: 0; padding: 0; }
.nav__list > li { position: relative; }
.nav__list a { display: block; padding: 10px 14px; font: 400 16px/1.6 var(--sans); color: var(--ink); text-decoration: none; border-top: 3px solid transparent; white-space: nowrap; }
.nav__list a:hover { color: var(--green); }
.nav__list > li > a[aria-current="page"] { border-top-color: var(--ink); color: var(--black); }
.nav__sub { list-style: none; margin: 0; padding: 6px 0; position: absolute; left: 0; top: 100%; min-width: 200px; background: var(--white); box-shadow: 0 8px 20px rgba(0,0,0,.12); display: none; z-index: 5; }
.nav__sub a { border: 0; padding: 8px 18px; font-size: 15px; }
.nav__list > li:hover > .nav__sub, .nav__list > li:focus-within > .nav__sub { display: block; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.menu-btn svg { width: 30px; height: 30px; }
.newsletter-bar { display: none; background: var(--mint); text-align: center; text-decoration: none; color: var(--black); font: 400 17px/1 var(--sans); padding-block: 13px; }

/* Honeycomb bands */
.comb-honey { background: var(--honey) url(img/pattern-honey.jpg) center / 980px auto repeat; }
.comb-mint { background: var(--mint) url(img/pattern-mint.jpg) center / 800px auto repeat; }
.comb-mint--big { background-size: 3200px auto; background-position: center top; }
.bg-honey { background: var(--honey); }
.bg-mint { background: var(--mint); }
.bg-ink { background: var(--ink); color: var(--white); }
.bg-ink h2, .bg-ink h3 { color: var(--white); }
.strip { height: 40px; background: var(--mint); }
.strip--comb { height: 50px; }

/* Framed cards (white mat + thin lavender rule) */
.frame { background: var(--white); padding: 6px; }
.frame__in { border: 1px solid var(--lavender); height: 100%; }

/* Page hero: full-bleed photo with a white headline */
.page-hero { position: relative; min-height: clamp(320px, 45vw, 600px); display: flex; align-items: center; color: var(--white); background: var(--ink); overflow: hidden; }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero .wrap { position: relative; }
.page-hero h1 { color: var(--white); font-size: var(--h1); line-height: 1.05; text-shadow: 0 2px 18px rgba(0,0,0,.25); }

/* Retreat cards (home, Upcoming Retreats, Retreat Center) */
.retreat-grid { display: grid; grid-template-columns: repeat(3, 283px); justify-content: center; gap: 56px 27px; }
.retreat { display: flex; flex-direction: column; align-items: center; text-align: center; }
.retreat__img { width: 100%; margin-bottom: 26px; overflow: hidden; }
.retreat__img img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.retreat h3 { font-size: 20px; line-height: 1.2; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; padding-inline: 20px; }
.retreat__date { font: 400 16px/1.85 var(--sans); margin-top: 8px; padding-inline: 20px; }
.retreat details { margin: 8px 0 22px; font: 400 16px/1.4 var(--sans); }
.retreat summary { cursor: pointer; text-decoration: underline; list-style: none; }
.retreat summary::-webkit-details-marker { display: none; }
.retreat details p { margin-top: 10px; text-align: left; font-size: 15px; line-height: 1.5; background: rgba(255,255,255,.8); padding: 10px 12px; }
.retreat .btn { margin-top: auto; min-width: 138px; }

/* Event rows (Upcoming Events) */
.ev-list { list-style: none; margin: 0 auto; padding: 0; max-width: 920px; border-top: 1px solid var(--rule); }
.ev { display: grid; grid-template-columns: 80px 1fr auto; gap: 26px; align-items: center; padding-block: 30px; border-bottom: 1px solid var(--rule); }
.ev__img { width: 80px; height: 80px; overflow: hidden; }
.ev__img img { width: 100%; height: 100%; object-fit: cover; }
.ev__when { font: 700 16px/1.5 var(--sans); }
.ev__what { font: 700 25px/1.35 var(--sans); }
.ev__what span { font: 400 16px/1 var(--sans); }
.ev .btn { min-width: 100px; padding-inline: 20px; }

/* Blog post cards */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; max-width: 960px; margin: 0 auto; }
.post { border: 1px solid var(--rule); display: flex; flex-direction: column; min-width: 0; text-decoration: none; color: var(--ink); background: var(--white); }
.post img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.post__body { padding: 24px 24px 40px; }
.post h3 { font-size: 22px; line-height: 1.4; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post p { margin-top: 14px; font: 400 16px/1.5 var(--sans); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post:hover h3 { text-decoration: underline; }

/* Newsletter signup band */
.signup { padding-block: 70px 110px; }
.signup__head { display: flex; align-items: center; justify-content: center; gap: 36px; max-width: 760px; margin: 0 auto; }
.signup__head svg { width: 92px; height: 120px; flex: none; }
.signup h2 { font-size: var(--h3); text-align: center; color: var(--ink); }
.signup__quote { max-width: 580px; margin: 16px auto 0; text-align: center; font-size: 20px; line-height: 1.67; }
.form-card { max-width: 700px; margin: 44px auto 0; background: var(--white); padding: 26px 36px 30px; }
.form-card__title { font: 400 clamp(20px, 3vw, 26px)/1.5 var(--sans); color: var(--black); }
.form-row { display: grid; grid-template-columns: 1fr 200px; gap: 12px; align-items: end; margin-top: 10px; }
.field label { display: block; font: 400 14px/1.4 var(--sans); color: var(--black); }
.field input, .field textarea { width: 100%; border: 0; border-bottom: 2px solid var(--black); padding: 10px 0 8px; font: 400 18px/1.3 var(--sans); background: transparent; border-radius: 0; color: var(--ink); }
.field textarea { min-height: 110px; resize: vertical; }
.field--full { grid-column: 1 / -1; }
.check { display: flex; gap: 10px; align-items: center; margin-top: 18px; font: 400 14px/1.4 var(--sans); }
.check input { width: 16px; height: 16px; accent-color: var(--black); }
.form-msg { margin-top: 14px; font: 400 15px/1.4 var(--sans); }
.form-msg:empty { display: none; }

/* Footer */
.footer { background: var(--mint); padding-block: 70px 30px; }
.footer__top { display: grid; grid-template-columns: 300px 1fr; gap: 40px; max-width: 840px; margin: 0 auto; }
.footer__brand { border-right: 2px solid var(--white); padding-right: 30px; }
.footer__brand p:first-child { font: 700 clamp(40px, 5vw, 56px)/1.2 var(--sans); color: var(--white); }
.footer__brand p:last-child { margin-top: 12px; font: 400 22px/1.3 var(--sans); color: var(--white); }
.footer__links { display: grid; grid-template-columns: repeat(2, max-content); grid-auto-flow: column; grid-template-rows: repeat(5, auto); gap: 0 56px; list-style: none; margin: 0; padding: 10px 0 0; }
.footer__links a { display: block; padding-block: 6px; font: 400 16px/1.5 var(--sans); text-decoration: none; color: var(--black); }
.footer__links a[aria-current] { color: var(--white); }
.footer__contact { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; max-width: 840px; margin: 40px auto 0; }
.contact-line { display: flex; align-items: center; gap: 14px; font: 400 16px/1.4 var(--sans); color: var(--black); text-decoration: none; }
.contact-line span:first-child { width: 52px; height: 52px; border-radius: 50%; background: var(--white); display: grid; place-items: center; flex: none; }
.contact-line svg { width: 24px; height: 24px; }
.social { display: flex; gap: 12px; margin-left: auto; }
.social a { color: var(--black); }
.social svg { width: 20px; height: 20px; }
.footer__fine { text-align: center; margin-top: 56px; font: 400 13px/1.5 var(--sans); color: var(--black); }

/* Phone and small tablet */
@media (max-width: 900px) {
  .nav { display: none; }
  .menu-btn { display: block; }
  .site-header.is-open .nav {
    display: flex; position: fixed; inset: 0; z-index: 30; background: var(--white);
    justify-content: center; gap: 20px; overflow-y: auto;
    padding: calc(env(safe-area-inset-top, 0px) + 70px) var(--gutter-r) calc(env(safe-area-inset-bottom, 0px) + 30px) var(--gutter-l);
  }
  .site-header.is-open .nav__list { flex-direction: column; align-items: center; }
  .site-header.is-open .nav__list a { font-size: 22px; border: 0; padding: 6px 14px; text-align: center; }
  .site-header.is-open .nav__list a[aria-current="page"] { font-weight: 700; }
  .site-header.is-open .nav__sub { display: block; position: static; box-shadow: none; padding: 0 0 6px; min-width: 0; }
  .site-header.is-open .nav__sub a { font-size: 17px; color: #555; padding: 4px 14px; }
  .site-header.is-open .nav__cta { order: 2; font-size: 16px; padding: 12px 18px; }
  .site-header.is-open .menu-btn { position: fixed; z-index: 31; top: calc(env(safe-area-inset-top, 0px) + 22px); right: var(--gutter-r); }
  .site-header__in { min-height: 76px; }
  .brand img { width: 46px; }
  .newsletter-bar { display: block; }
  .retreat-grid { grid-template-columns: repeat(2, minmax(0, 300px)); }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .section { padding-block: 50px; }
  .page-hero { min-height: 300px; }
  .retreat-grid { grid-template-columns: minmax(0, 340px); gap: 48px; }
  .retreat { align-items: stretch; text-align: left; }
  .retreat h3, .retreat__date { padding-inline: 0; -webkit-line-clamp: unset; }
  .retreat .btn { width: 100%; }
  .ev { grid-template-columns: 64px 1fr; gap: 8px 16px; padding-block: 22px; }
  .ev__img { width: 64px; height: 64px; grid-row: 1 / 3; }
  .ev__what { font-size: 20px; }
  .ev .btn { grid-column: 2; justify-self: start; }
  .post-grid { grid-template-columns: 1fr; gap: 26px; }
  .signup { padding-block: 50px 60px; }
  .signup__head { flex-direction: column; gap: 14px; }
  .signup__head svg { width: 70px; height: 92px; }
  .signup__quote { font-size: 18px; }
  .form-card { padding: 24px 22px 26px; }
  .form-row { grid-template-columns: 1fr; }
  .form-row .btn { background: var(--mint); border-color: var(--mint); color: var(--black); margin-top: 6px; }
  .footer { padding-block: 50px 26px; }
  .footer__top { grid-template-columns: 1fr; gap: 26px; }
  .footer__brand { border-right: 0; padding-right: 0; }
  .footer__links { grid-template-rows: none; grid-auto-flow: row; gap: 0 40px; }
  .footer__contact { flex-direction: column; align-items: flex-start; }
  .social { margin-left: 0; }
}

/* Newsletter popup (header button on pages without a signup band) */
.nl-dialog { border: 0; padding: 40px 36px 34px; max-width: min(520px, calc(100vw - 32px)); background: var(--mint) url(img/pattern-mint.jpg) center / 800px auto; color: var(--ink); }
.nl-dialog::backdrop { background: rgba(0,0,0,.55); }
.nl-dialog h2 { font-size: 28px; text-align: center; color: var(--ink); }
.nl-dialog__close { position: absolute; top: 8px; right: 12px; border: 0; background: none; font: 400 34px/1 var(--sans); cursor: pointer; color: var(--ink); }
.nl-form { background: var(--white); padding: 22px 24px 24px; margin-top: 24px; display: grid; gap: 14px; }
.nl-form .btn { width: 100%; }

/* Motion copied from the old Wix site. Pages opt in with data attributes;
   slide-ins are skipped for visitors whose device asks for reduced motion. */
body { overflow-x: clip; }
@keyframes float-in { from { opacity: 0; translate: var(--float-x) 0; } }
[data-float="left"] { --float-x: -60px; }
[data-float="right"] { --float-x: 60px; }
@media (prefers-reduced-motion: no-preference) {
  /* data-float="left|right": slides 60px in from that side as it scrolls into view */
  .js [data-float]:not(.is-in) { opacity: 0; }
  .js [data-float].is-in { animation: float-in 1.2s cubic-bezier(.445, .05, .55, .95) both; }
  /* data-rise: each photo glides up 100px into place as it scrolls into view */
  .js [data-rise] > * { transition: translate .8s cubic-bezier(.13, .78, .53, .92), scale .4s, filter .4s; }
  .js [data-rise] > :not(.is-in) { translate: 0 100px; }
}
/* data-hover on a photo group: "shrink" (slightly smaller), "tint" (darker),
   "zoom" (photo slowly enlarges inside its frame) */
@media (hover: hover) {
  [data-hover~="shrink"] img, [data-hover~="tint"] img { transition: scale .4s, filter .4s; }
  [data-hover~="shrink"] img:hover { scale: .985; }
  [data-hover~="tint"] img:hover { filter: brightness(.55); }
  [data-hover~="zoom"] > * { overflow: hidden; }
  [data-hover~="zoom"] img { transition: scale 2.2s cubic-bezier(.14, .4, .09, .99); }
  [data-hover~="zoom"] > :hover img { scale: 1.1; }
  /* Retreat cards and event rows: the photo zooms in while the card is pointed at */
  .retreat__img img, .ev__img img { transition: scale .5s; }
  .retreat:hover .retreat__img img, .ev:hover .ev__img img { scale: 1.15; }
}
@media (min-width: 901px) {
  /* data-fixed-bg: the section's photo stays still while the page scrolls over it */
  section[data-fixed-bg], div[data-fixed-bg] { clip-path: inset(0); }
  section[data-fixed-bg] > img, div[data-fixed-bg] > img { position: fixed; inset: 0; width: 100%; height: 100vh; object-fit: cover; }
  /* The header fades out while scrolling down (see site.js) */
  .site-header { transition: opacity .2s; }
  .site-header.is-hidden { opacity: 0; pointer-events: none; }
}
