/* Jyoti Astrology — rebuild of jyotiastrology.net
   Layout ratios and palette taken 1:1 from the original Wix build.
   Wix sizes everything against a "scaling factor" = min(viewport, section max width).
   --sf reproduces that so the page scales identically at every width. */

:root {
  --sf: min(100vw, 1920px);

  --base-1: #0a0b14;
  --base-2: #fcfcfc;
  --shade-1: #1a1c2b;
  --shade-2: #7d7d7d;
  --shade-3: #bdbdbd;
  --gold:    #d4af37;

  --page-max: 1920px;

  --font-display: 'Aboreto', 'Times New Roman', serif;
  --font-body: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--base-1);
  color: var(--base-2);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* Every section is a full-bleed band with a 1920px content track inside it. */
.band { width: 100%; }
.band__inner {
  max-width: var(--page-max);
  margin-inline: auto;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

/* ---------------------------------------------------------------- header */

.site-header {
  background: var(--base-1);
  border-bottom: 1px solid var(--shade-3);
  position: relative;
  z-index: 30;
}

.site-header .band__inner {
  min-height: calc(0.0588 * var(--sf));
  align-items: center;
}

.nav {
  justify-self: start;
  margin-left: 50.390625%;
  padding-inline-end: calc(0.0132812 * var(--sf));
}

.nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  column-gap: calc(0.0195313 * var(--sf));
}

.nav__link {
  display: block;
  font: 400 calc(0.0234375 * var(--sf)) / 1.3em var(--font-body);
  color: var(--base-2);
  padding: calc(0.0023437 * var(--sf)) calc(0.0078125 * var(--sf));
  white-space: nowrap;
}

.nav__link[aria-current="page"] { text-decoration: underline; }

.nav__toggle,
.nav__close,
.nav__close-item { display: none; }

/* ------------------------------------------------------------------ hero */

.hero .band__inner { min-height: calc(0.5044067 * var(--sf)); }

.hero__media {
  position: absolute;
  inset: 0;
  background: var(--base-1);
  overflow: hidden;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

/* -------------------------------------------------------------- services */

.services .band__inner { grid-template-rows: min-content 1fr; }

.services__title {
  grid-area: 1 / 1 / 2 / 2;
  align-self: start;
  justify-self: start;
  width: 94%;
  margin: calc(0.0625 * var(--sf)) 0 calc(0.163916 * var(--sf)) 3.1298828125%;
  font: 400 calc(0.04375 * var(--sf)) / 1.1em var(--font-display);
  color: var(--base-2);
}

.services__image {
  grid-area: 1 / 1 / 2 / 2;
  align-self: start;
  justify-self: start;
  width: 25.09%;
  aspect-ratio: 1 / 1;
  margin: calc(0.015271 * var(--sf)) 0 calc(0.0079102 * var(--sf)) 72.7392578125%;
  border-radius: calc(0.0125 * var(--sf));
  overflow: hidden;
}

.services__image img { width: 100%; height: 100%; object-fit: cover; }

.services__body {
  grid-area: 2 / 1 / 3 / 2;
  align-self: start;
  justify-self: start;
  width: 91.19%;
  margin: 0 0 calc(0.0467163 * var(--sf)) 5.1611328125%;
}

/* ------------------------------------------------------------ about page */

.about { background: var(--shade-1); }

.about .band__inner { grid-template-rows: min-content 1fr; }

.about__title {
  grid-area: 1 / 1 / 2 / 2;
  align-self: start;
  justify-self: start;
  width: 26.13%;
  margin: calc(0.0003906 * var(--sf)) 0 calc(0.0079102 * var(--sf)) 7.449951171875%;
  font: 400 calc(0.028125 * var(--sf)) / 1.1em var(--font-display);
  color: var(--base-2);
}

.about__body {
  grid-area: 2 / 1 / 3 / 2;
  align-self: start;
  justify-self: start;
  width: 86.61%;
  margin: 0 0 calc(0.023584 * var(--sf)) 7.449951171875%;
  text-align: left;
}

/* --------------------------------------------------------- booking page */

.booking .band__inner { grid-template-rows: min-content min-content 1fr; }

.booking__title {
  grid-area: 1 / 1 / 2 / 2;
  align-self: start;
  justify-self: start;
  width: 94%;
  margin: calc(0.0625 * var(--sf)) 0 calc(0.0234375 * var(--sf)) 3.1298828125%;
  font: 400 calc(0.04375 * var(--sf)) / 1.1em var(--font-display);
  color: var(--base-2);
}

.booking__intro {
  grid-area: 2 / 1 / 3 / 2;
  align-self: start;
  justify-self: start;
  width: 91.19%;
  margin: 0 0 calc(0.03125 * var(--sf)) 5.1611328125%;
}

.booking__options {
  grid-area: 3 / 1 / 4 / 2;
  align-self: start;
  justify-self: start;
  width: 91.19%;
  margin: 0 0 calc(0.0625 * var(--sf)) 5.1611328125%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: calc(0.0208333 * var(--sf));
}

.offer {
  display: flex;
  flex-direction: column;
  gap: calc(0.0125 * var(--sf));
  padding: calc(0.0229166 * var(--sf));
  background: var(--shade-1);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: calc(0.0125 * var(--sf));
  transition: border-color 240ms ease, transform 240ms ease, box-shadow 240ms ease;
}

.offer:hover,
.offer:focus-within {
  border-color: rgba(212, 175, 55, 0.6);
  transform: translateY(-4px);
  box-shadow: 0 calc(0.0083 * var(--sf)) calc(0.0208 * var(--sf)) rgba(0, 0, 0, 0.45);
}

.offer__head {
  display: flex;
  flex-direction: column;
  gap: calc(0.0041 * var(--sf));
}

.offer__name {
  margin: 0;
  font: 400 calc(0.021875 * var(--sf)) / 1.1em var(--font-display);
  color: var(--base-2);
}

.offer__meta {
  margin: 0;
  font: 400 calc(0.0109375 * var(--sf)) / 1.3em var(--font-body);
  color: var(--shade-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.offer__cta {
  align-self: start;
  margin-top: auto;
  display: inline-block;
  padding: calc(0.0083 * var(--sf)) calc(0.0208 * var(--sf));
  border-radius: 999px;
  background: var(--gold);
  color: var(--base-1);
  font: 600 calc(0.0125 * var(--sf)) / 1em var(--font-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 240ms ease, transform 240ms ease, background-color 240ms ease;
}

.offer__cta:hover { background: #e5c65c; }

.offer__cta:focus-visible {
  outline: 2px solid var(--base-2);
  outline-offset: 3px;
}

/* On a hover-capable pointer at the desktop layout, the button stays out of
   the way until the card is hovered or something inside it takes focus.
   Below 1024px the button is always visible, whatever the device claims
   about hover -- touch laptops and tablets report hover:hover. */
@media (hover: hover) and (min-width: 1024px) {
  .offer__cta {
    opacity: 0;
    transform: translateY(calc(0.0041 * var(--sf)));
  }

  .offer:hover .offer__cta,
  .offer:focus-within .offer__cta {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .offer,
  .offer__cta { transition: none; }

  .offer:hover,
  .offer:focus-within { transform: none; }

  .offer__cta { transform: none; }
}

/* ----------------------------------------------------------- rich text */

.rich {
  font: 400 calc(0.01875 * var(--sf)) / 1.3em var(--font-body);
  color: var(--base-2);
}

.rich p { margin: 0; }
.rich strong { font-weight: 700; }

.rich ul {
  margin: 0;
  padding-left: 1.5em;
  list-style: disc;
}

/* ---------------------------------------------------------------- footer */

.site-footer {
  background: var(--base-1);
  border-top: 1px solid var(--shade-2);
}

.site-footer .band__inner {
  grid-template-rows: min-content min-content min-content 1fr;
}

.footer__logo {
  grid-area: 1 / 1 / 2 / 2;
  align-self: start;
  justify-self: start;
  width: 35.05%;
  aspect-ratio: 1 / 0.38252682285964534;
  margin: calc(0.006958 * var(--sf)) 0 calc(0.020056 * var(--sf)) 35%;
}

.footer__logo img { width: 100%; height: 100%; object-fit: contain; }

.footer__lead {
  grid-area: 2 / 1 / 3 / 2;
  align-self: start;
  justify-self: start;
  width: 78.77%;
  margin: 0 0 calc(0.0495605 * var(--sf)) 12.3046875%;
  font: 400 calc(0.021875 * var(--sf)) / 1.1em var(--font-display);
  color: var(--base-2);
}

.footer__contact {
  grid-area: 3 / 1 / 4 / 2;
  align-self: start;
  justify-self: start;
  width: 91.36%;
  margin: 0 0 calc(0.0157959 * var(--sf)) 7.734375%;
  font: 400 calc(0.01875 * var(--sf)) / 1.1em var(--font-display);
  color: var(--base-2);
  white-space: pre-wrap;
}

.footer__rule {
  grid-area: 4 / 1 / 5 / 2;
  align-self: start;
  justify-self: start;
  width: 87.5%;
  margin: 0 0 calc(0.0625 * var(--sf)) 6.25%;
}

.footer__rule > div {
  border-top: 1px solid var(--shade-2);
  min-height: calc(0.021875 * var(--sf));
}

/* ==================================================================
   Mobile — the original switches layout at 1023px and caps its
   scaling factor at 700px.
   ================================================================== */

@media screen and (max-width: 1023px) {
  :root { --sf: min(100vw, 700px); }

  /* header ------------------------------------------------------- */

  .site-header .band__inner {
    grid-template-columns: 1fr max-content;
    align-items: center;
    min-height: calc(0.1794872 * var(--sf));
    padding-inline: calc(0.0615385 * var(--sf));
  }

  .nav {
    grid-column: 2;
    margin-left: 0;
    padding-inline-end: 0;
  }

  .nav__toggle {
    display: block;
    background: none;
    border: 0;
    padding: calc(0.0076923 * var(--sf)) 0;
    cursor: pointer;
    line-height: 0;
  }

  .nav__toggle svg {
    width: calc(0.1076923 * var(--sf));
    height: calc(0.1076923 * var(--sf));
    fill: var(--base-2);
  }

  .nav__close svg {
    width: calc(0.0615385 * var(--sf));
    height: calc(0.0615385 * var(--sf));
    fill: var(--base-2);
  }

  .nav__list {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 40;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    row-gap: 4px;
    column-gap: 0;
    background: var(--shade-1);
    padding: calc(0.0435897 * var(--sf)) calc(0.0153846 * var(--sf));
    overflow-y: auto;
  }

  .nav--open .nav__list { display: flex; }

  .nav__link {
    font: 400 calc(0.0564103 * var(--sf)) / 1.3em var(--font-body);
    padding: calc(0.0076923 * var(--sf)) calc(0.025641 * var(--sf));
    text-align: start;
  }

  .nav__close {
    display: none;
    background: none;
    border: 0;
    align-self: flex-end;
    padding: calc(0.0282051 * var(--sf));
    cursor: pointer;
    line-height: 0;
  }

  .nav--open .nav__close,
  .nav--open .nav__close-item { display: block; }

  .nav__close-item { align-self: flex-end; }

  /* hero --------------------------------------------------------- */

  .hero .band__inner { min-height: calc(0.5128205 * var(--sf)); }

  /* services — image moves above the heading ---------------------- */

  .services .band__inner { grid-template-rows: min-content min-content 1fr; }

  .services__image {
    grid-area: 1 / 1 / 2 / 2;
    width: 87.6923076923077%;
    aspect-ratio: 1 / 0.8771929824561403;
    margin: calc(0.1025641 * var(--sf)) 6.153846153846154% 0;
    border-radius: calc(0.0410256 * var(--sf));
  }

  .services__title {
    grid-area: 2 / 1 / 3 / 2;
    width: 87.6923076923077%;
    margin: calc(0.0615385 * var(--sf)) 6.153846153846154% 0;
    font-size: calc(0.0769231 * var(--sf));
  }

  .services__body {
    grid-area: 3 / 1 / 4 / 2;
    width: 87.6923076923077%;
    margin: calc(0.0307692 * var(--sf)) 6.153846153846154% calc(0.1025641 * var(--sf));
  }

  /* about -------------------------------------------------------- */

  .about__title {
    width: 87.6923076923077%;
    justify-self: center;
    margin: calc(0.1025641 * var(--sf)) 6.153846153846154% 0;
    font-size: calc(0.0615385 * var(--sf));
    text-align: center;
  }

  .about__body {
    width: 87.6923076923077%;
    justify-self: center;
    margin: calc(0.0307692 * var(--sf)) 6.153846153846154% calc(0.1025641 * var(--sf));
    text-align: center;
  }

  /* booking ------------------------------------------------------ */

  .booking__title {
    width: 87.6923076923077%;
    margin: calc(0.1025641 * var(--sf)) 6.153846153846154% 0;
    font-size: calc(0.0769231 * var(--sf));
  }

  .booking__intro {
    width: 87.6923076923077%;
    margin: calc(0.0307692 * var(--sf)) 6.153846153846154% calc(0.0410256 * var(--sf));
  }

  .booking__options {
    width: 87.6923076923077%;
    margin: 0 6.153846153846154% calc(0.1025641 * var(--sf));
    grid-template-columns: minmax(0, 1fr);
    gap: calc(0.0615385 * var(--sf));
  }

  .offer {
    gap: calc(0.0307692 * var(--sf));
    padding: calc(0.0615385 * var(--sf));
    border-radius: calc(0.0410256 * var(--sf));
  }

  .offer__head { gap: calc(0.0153846 * var(--sf)); }

  .offer__name { font-size: calc(0.0564103 * var(--sf)); }

  .offer__meta { font-size: calc(0.0307692 * var(--sf)); }

  .offer__cta {
    padding: calc(0.0230769 * var(--sf)) calc(0.0512821 * var(--sf));
    font-size: calc(0.0358974 * var(--sf));
  }

  /* rich text ---------------------------------------------------- */

  .rich { font-size: calc(0.0615385 * var(--sf)); }

  .about__body.rich { font-size: calc(0.0512821 * var(--sf)); }

  /* footer ------------------------------------------------------- */

  .footer__logo {
    width: 30.76923076923077%;
    margin: calc(0.1025641 * var(--sf)) 6.153846153846154% 0;
  }

  .footer__lead {
    width: 87.6923076923077%;
    margin: calc(0.1025641 * var(--sf)) 6.153846153846154% 0;
    font-size: calc(0.0564103 * var(--sf));
  }

  .footer__contact {
    width: 87.6923076923077%;
    margin: calc(0.1025641 * var(--sf)) 6.153846153846154% 0;
    font-size: calc(0.0512821 * var(--sf));
  }

  .footer__rule {
    width: 87.6923076923077%;
    margin: calc(0.0615385 * var(--sf)) 6.153846153846154% calc(0.1025641 * var(--sf));
  }

  .footer__rule > div { min-height: calc(0.2564103 * var(--sf)); }
}

@media (prefers-reduced-motion: no-preference) {
  .fade-in { animation: fade-in 1200ms cubic-bezier(0.445, 0.05, 0.55, 0.95) both; }
  @keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
}
