/* ==========================================================================
   saramirowitz.com — shared styles
   Design tokens mirror the original Elementor global kit.
   ========================================================================== */
:root {
  --c-primary: #4812c3;
  --c-primary-dark: #3c109f;
  --c-navy: #131f3c;
  --c-text: #636c86;
  --c-accent: #b6bac6;
  --c-white: #fff;
  --c-gray-50: #f9fafb;
  --c-gray-100: #f3f5f8;
  --c-gray-200: #d8dbe0;
  --c-gray-300: #c6cbd3;
  --c-link: #1971d8;
  --c-link-hover: #0d3c73;
  --f-head: "Poppins", sans-serif;
  --f-body: "Nunito Sans", sans-serif;
  --container: 1140px;
  --gap: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 14px;
  line-height: 1.2;
  font-weight: 400;
  color: var(--c-navy);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 1em; padding-left: 20px; }
a { color: var(--c-link); font-weight: 700; text-decoration: none; transition: color .2s; }
a:hover { color: var(--c-link-hover); }
strong, b { font-weight: 700; }

h1, h2, h3, h4, h5, h6 { margin: 0; color: var(--c-navy); font-family: var(--f-head); font-weight: 600; line-height: 1.2; }
h1 { font-size: 24px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
h4 { font-size: 16px; }
h5 { font-size: 15px; }
h6 { font-size: 14px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 2000; background: #fff; padding: 8px 16px; }
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; }
@media (max-width: 1024px) { .container { max-width: 80%; } }
@media (max-width: 767px) { .container { max-width: 90%; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--f-body); font-size: 14px; font-weight: 700; line-height: 1.2;
  padding: 16px 24px; border-radius: 100px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; transition: background-color .3s, color .3s, border-color .3s, transform .3s;
}
.btn--primary { color: var(--c-white); background: var(--c-primary); border-color: var(--c-primary); }
.btn--primary:hover, .btn--primary:focus-visible { color: var(--c-white); background: var(--c-primary-dark); border-color: var(--c-primary-dark); }
.btn--white { color: var(--c-navy); background: var(--c-white); border-color: var(--c-gray-200); }
.btn--white:hover, .btn--white:focus-visible { color: var(--c-navy); background: var(--c-gray-100); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  margin-bottom: -90px; padding: 0 10px;
  background-color: rgba(255, 255, 255, 0);
  transition: background-color 1s ease;
}
.site-header.is-scrolled { background-color: #fff; }
.site-header__inner {
  max-width: var(--container); margin: 0 auto; min-height: 88px;
  display: flex; align-items: center; justify-content: space-between; padding: 20px 10px;
}
.site-header__logo { display: flex; width: 35%; }
.site-header__logo img { height: 48px; width: auto; }
.site-header__actions { display: flex; align-items: center; justify-content: flex-end; gap: 24px; flex: 1; }
.site-header__cta { padding: 10px 40px; border: 0; }

.site-nav { position: relative; }
.site-nav__menu { list-style: none; margin: 0; padding: 0; display: flex; }
.site-nav__menu a {
  display: block; padding: 13px 20px; font-size: 14px; font-weight: 700; line-height: 1.2;
  color: var(--c-primary);
}
.site-nav__menu a:hover, .site-nav__menu a:focus-visible, .site-nav__menu a.is-active { color: var(--c-primary-dark); }
.site-nav__toggle {
  display: none; width: 33px; height: 33px; padding: 5.5px; border: 0; border-radius: 3px;
  background: rgba(0, 0, 0, .05); color: #33373d; cursor: pointer; line-height: 0;
}
.site-nav__toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: square; }
.site-nav__toggle .icon-close, .site-nav.is-open .icon-open { display: none; }
.site-nav.is-open .icon-close { display: block; }

@media (max-width: 1024px) {
  .site-header__inner { max-width: 80%; }
  .site-header__actions { gap: 24px; }
  .site-nav { width: 80px; align-self: flex-start; margin-top: -3px; }
  .site-nav__toggle { display: block; margin: 0 auto; }
  .site-nav__menu {
    display: none; position: absolute; top: calc(100% + 7px); left: 0;
    flex-direction: column; background: #fff; min-width: 100%; z-index: 10;
  }
  .site-nav.is-open .site-nav__menu { display: flex; }
  .site-nav__menu a { color: #33373d; padding: 10px 20px; line-height: 1.2; }
  .site-nav__menu a:hover, .site-nav__menu a.is-active { color: #fff; background: #55595c; }
}
@media (max-width: 767px) {
  .site-header { position: relative; }
  .site-header__inner { max-width: 90%; min-height: 83px; align-items: flex-start; }
  .site-header__logo { display: none; }
  .site-header__actions { justify-content: space-between; align-items: flex-start; }
  .site-nav__menu { top: calc(100% + 10px); }
  .site-nav { margin-top: 0; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--c-navy); padding: 40px 40px 61px; text-align: center; color: #fff; }
.site-footer__social { list-style: none; margin: 0; padding: 30px 0 0; display: flex; justify-content: center; gap: 24px; }
.site-footer__social a {
  display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--c-primary); transition: background-color .3s;
}
.site-footer__social a:hover { background: var(--c-primary-dark); }
.site-footer__social svg { width: 20px; height: 20px; fill: #fff; }
.site-footer__credit, .site-footer__copy { font-size: 12px; line-height: 1.2; margin: 0; }
.site-footer__credit { margin: 62px 0 0; }
.site-footer__copy { margin-top: 10px; }
@media (max-width: 1024px) { .site-footer__credit { margin-top: 51px; } .site-footer__copy { margin-top: 26px; } }
@media (max-width: 767px) { .site-footer__credit { margin-top: 44px; } .site-footer__copy { margin-top: 38px; } }
.site-footer__credit a { color: var(--c-link); font-size: 14px; }
.site-footer__credit a:hover { color: var(--c-link-hover); }

/* ---------- Password gate ---------- */
.pw-gate { padding: 120px 20px 20px; text-align: center; font-size: 15px; color: #3a3a3a; }
.pw-gate__row { display: flex; align-items: center; justify-content: center; gap: 4px; flex-wrap: wrap; margin-top: 16px; }
.pw-gate input {
  font: inherit; color: #666; background: #fafafa; border: 1px solid #ddd; border-radius: 2px;
  padding: 10px 12px; height: 44px; width: 196px; margin-left: 4px;
}
.pw-gate input:focus { outline: none; border-color: var(--c-primary); background: #fff; }
.pw-gate .btn { padding: 16px 24px; }
.pw-gate__error { color: #c0392b; font-size: 14px; margin-top: 12px; }

/* ---------- Entrance animations (Elementor "improved fade" equivalents) ---------- */
[data-anim]:not(.is-visible) { visibility: hidden; }
.is-animated { animation-duration: 1s; animation-fill-mode: both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInDown { from { opacity: 0; transform: translate3d(0, -30px, 0); } to { opacity: 1; transform: none; } }
@keyframes fadeInUp { from { opacity: 0; transform: translate3d(0, 30px, 0); } to { opacity: 1; transform: none; } }
@keyframes fadeInLeft { from { opacity: 0; transform: translate3d(-30px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes fadeInRight { from { opacity: 0; transform: translate3d(30px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes zoomIn { from { opacity: 0; transform: scale3d(.3, .3, .3); } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  [data-anim] { visibility: visible !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* Hover "grow" (Elementor elementor-animation-grow) */
.hover-grow { transition: transform .3s; }
.hover-grow:hover, .hover-grow:focus-visible { transform: scale(1.1); }

/* Responsive visibility helpers (Elementor breakpoints: mobile ≤767, tablet ≤1024) */
@media (min-width: 1025px) { .hide-desktop { display: none !important; } }
@media (min-width: 768px) and (max-width: 1024px) { .hide-tablet { display: none !important; } }
@media (max-width: 767px) { .hide-mobile { display: none !important; } }

/* ---------- Lightbox (opt-in via a[data-lightbox], see site.js) ---------- */
.lightbox-lock, .lightbox-lock body { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center;
  padding: 60px 70px; background: rgba(19, 31, 60, .83);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; box-shadow: 0 0 30px rgba(0, 0, 0, .3); }
.lightbox__btn {
  position: absolute; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  padding: 0; border: 0; background: none; color: rgba(255, 255, 255, .9); cursor: pointer;
}
.lightbox__btn:hover, .lightbox__btn:focus-visible { color: #fff; }
.lightbox__btn svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox--single .lightbox__prev, .lightbox--single .lightbox__next { display: none; }
@media (max-width: 767px) { .lightbox { padding: 60px 10px; } .lightbox__prev, .lightbox__next { top: auto; bottom: 8px; transform: none; } }
