/* Mindful Minutes with Ilan — reproduces the Divi 4 design with plain CSS.
   Colours and fonts come from content/site.json (CSS variables in <head>). */

@font-face { font-family: "Roboto"; font-weight: 100 900; font-display: swap; src: url(/assets/fonts/roboto-latin-wght-normal.woff2) format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 300 700; font-display: swap; src: url(/assets/fonts/space-grotesk-latin-wght-normal.woff2) format("woff2"); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0; background: #fff; color: var(--c-text);
  font: 500 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--f-heading); font-weight: 500; line-height: 1.3; margin: 0; color: var(--c-subheading); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--c-link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }

.container { width: 80%; max-width: 1080px; margin: 0 auto; }
.visually-hidden, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 100; background: #fff; padding: .5em 1em; }
.skip-link:focus { left: 1em; }
:focus-visible { outline: 3px solid var(--c-primary); outline-offset: 2px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--c-header); transition: box-shadow .3s; }
.site-header.is-scrolled { box-shadow: 0 1px 0 rgba(0,0,0,.1); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 134px; transition: height .3s; }
.site-header.is-scrolled .header-inner { height: 80px; }
.logo img { height: 108px; width: auto; transition: height .3s; }
.site-header.is-scrolled .logo img { height: 64px; }
.site-header .header-inner { width: 100%; max-width: none; padding: 0 30px; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; padding-top: 8px; }
.site-nav a { font: 600 18px/1 var(--f-heading); color: #000; padding: 10px 0; display: block; }
.site-nav a:hover { opacity: .7; text-decoration: none; }
.menu-toggle { display: none; }

/* ---------- Sections ---------- */
.section { padding: 81px 0; }
.section--alt { background: var(--c-alt-bg); }
.section-heading { font-size: 52px; color: var(--c-heading); margin-bottom: 27px; line-height: 1.3; }
.section-heading--xl { font-size: 72px; line-height: 1.2; text-align: center; margin-bottom: 17px; }

/* text + media (2/3 + 1/3, Divi gutter 3) */
.split { display: grid; grid-template-columns: 64.833% 29.666%; column-gap: 5.5%; align-items: start; }
.lead { font-family: var(--f-heading); font-size: 24px; line-height: 1.4; color: var(--c-heading); margin-bottom: 27px; }
.split-media img { border-radius: var(--r-image); }
.split-media figcaption { font-weight: 300; font-size: 16px; margin-top: 1em; }

/* cards */
.cards { display: grid; gap: 54px 5.5%; padding-top: 27px; }
.cards--2 { grid-template-columns: 47.25% 47.25%; }
.cards--3 { grid-template-columns: 29.666% 29.666% 29.666%; }
.card {
  background: rgba(255,255,255,.5); box-shadow: 0 10px 80px -10px rgba(0,0,0,.08);
  transition: transform .3s ease;
}
.card:hover { transform: scale(1.05); }
.card-body { padding: 15px 30px 30px; }
.card-title { font-size: 24px; color: var(--c-accent); padding-bottom: 10px; }

.video { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; margin-bottom: 30px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { all: unset; cursor: pointer; position: absolute; inset: 0; display: block; }
.video-play img { width: 100%; height: 100%; object-fit: cover; }
.video-play:hover::after { content: ""; position: absolute; inset: 0; background: rgba(100,181,246,.75); }
.video-icon {
  position: absolute; z-index: 1; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px;
  border-radius: 50%; border: 5px solid var(--c-play);
}
.video-icon::before {
  content: ""; position: absolute; left: 27px; top: 18px;
  border-style: solid; border-width: 15px 0 15px 25px; border-color: transparent transparent transparent var(--c-play);
}
.video-play:focus-visible { outline: 3px solid var(--c-play); outline-offset: -3px; }

/* link groups */
.group-title { font-size: 31px; color: var(--c-subheading); padding-bottom: 10px; }
.link-list { margin: 0; padding: 0 0 23px 1em; line-height: 26px; }
.link-list:last-child { padding-bottom: 0; }

/* contact */
.contact-intro { text-align: center; margin-bottom: 44px; }
.contact-form { max-width: 35em; margin: 0 auto; }
.field { margin-bottom: 30px; }
.field label { display: block; font: 400 16px/20px var(--f-body); color: #888; margin-bottom: 2px; }
.req { color: #e04562; }
.field input, .field textarea {
  width: 100%; font: 400 16px/1.3 var(--f-body); color: #000; background: transparent;
  border: 0; border-bottom: 1px solid var(--c-accent); padding: 10px 0 9px; border-radius: 0;
}
.field textarea { border: 1px solid var(--c-accent); padding: 10px; min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 1px 0 var(--c-primary); }
.button {
  font: 700 18px/1 var(--f-heading); color: var(--c-accent); background: transparent; cursor: pointer;
  border: 2px solid var(--c-accent); border-radius: var(--r-button); padding: 1em 1.5em;
}
.button:hover { color: #fff; background: var(--c-accent); }
.button[disabled] { opacity: .6; cursor: wait; }
.form-status { margin-top: 1em; min-height: 1.6em; }
.form-status.is-error { color: #c0392b; }
.form-status.is-success { color: var(--c-accent); font-weight: 700; }

/* ---------- Footer ---------- */
.footer-nav { background: var(--c-footer); padding: 21px 0 19px; }
.footer-nav ul { list-style: none; margin-top: 0; margin-bottom: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 26px; }
.footer-nav a { color: #fff; font: 600 18px/1.4 var(--f-body); }
.footer-bottom { background: var(--c-footer-bottom); padding: 15px 0 5px; }
.footer-bottom p { color: rgba(255,255,255,.46); font-size: 15px; padding-bottom: 10px; }

/* ---------- Responsive (Divi breakpoints) ---------- */
@media (min-width: 1350px) { .section { padding: 81px 0; } }
@media (max-width: 980px) {
  .section { padding: 50px 0; }
  .section-heading { font-size: 42px; }
  .section-heading--xl { font-size: 54px; }
  .lead { font-size: 28px; }
  .split, .cards--2, .cards--3 { grid-template-columns: 1fr; }
  .split-media { margin-top: 30px; }
  .cards { gap: 30px; }

  .header-inner, .site-header.is-scrolled .header-inner { height: 80px; padding: 0 5%; }
  .logo img, .site-header.is-scrolled .logo img { height: 58px; }
  .menu-toggle {
    display: block; background: none; border: 0; padding: 10px; cursor: pointer; width: 46px; height: 46px; position: relative;
  }
  .menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after {
    position: absolute; left: 11px; width: 24px; height: 3px; background: #000; border-radius: 2px; content: ""; transition: transform .2s;
  }
  .menu-toggle-bars { top: 21px; }
  .menu-toggle-bars::before { left: 0; top: -8px; }
  .menu-toggle-bars::after { left: 0; top: 8px; }
  .menu-toggle[aria-expanded="true"] .menu-toggle-bars { background: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(8px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { transform: translateY(-8px) rotate(-45deg); }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-top: 3px solid var(--c-primary); box-shadow: 0 2px 5px rgba(0,0,0,.1); padding: 5% 5%;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li + li { border-top: 1px solid rgba(0,0,0,.03); }
  .site-nav a { padding: 12px 5%; font-size: 16px; }
}
@media (max-width: 767px) {
  .section-heading { font-size: 32px; }
  .section-heading--xl { font-size: 40px; }
  .lead { font-size: 21px; }
  .group-title { font-size: 26px; }
  .card:hover { transform: none; }
}
@media (max-width: 480px) {
  .container { width: auto; margin: 0 16px; }
  .site-header .header-inner { margin: 0; padding: 0 16px; }
  .footer-nav ul { flex-direction: column; }
}
