:root {
  --navy: #061b2f;
  --navy-deep: #031120;
  --gold: #c99125;
  --gold-soft: #e0b95d;
  --green: #087a4b;
  --blue: #075aa8;
  --purple: #653093;
  --orange: #d76d22;
  --ink: #0c1b2c;
  --muted: #5f6a73;
  --paper: #f7f3ec;
  --white: #ffffff;
  --line: #e2ddd4;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

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

figure {
  margin: 0;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 50;
  transform: translateY(-140%);
  border-radius: 5px;
  background: var(--gold);
  color: var(--white);
  font-weight: 800;
  padding: 10px 14px;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--gold-soft);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  min-height: 78px;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid rgba(201, 145, 37, 0.42);
  background: var(--navy-deep);
  color: var(--white);
  padding: 12px 7vw;
}

.brand {
  display: grid;
  min-width: 214px;
  text-decoration: none;
}

.brand__script {
  color: var(--gold-soft);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
}

.brand__tag {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 22px;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.nav a {
  position: relative;
  text-decoration: none;
  white-space: nowrap;
}

.nav a::after {
  position: absolute;
  right: 0;
  bottom: -27px;
  left: 0;
  height: 3px;
  background: var(--gold);
  content: "";
  opacity: 0;
}

.nav a:hover::after {
  opacity: 1;
}

.header-button {
  border-radius: 3px;
  background: var(--gold);
  color: var(--white);
  font-size: 0.76rem;
  font-weight: 800;
  padding: 13px 18px;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.74rem;
  font-weight: 900;
}

.language-switch a {
  border-radius: 3px;
  padding: 7px 8px;
  text-decoration: none;
}

.language-switch a:hover,
.language-switch a[aria-current="page"] {
  background: rgba(201, 145, 37, 0.18);
  color: var(--gold-soft);
}

.hero {
  position: relative;
  display: grid;
  min-height: 720px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 500px);
  gap: 48px;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 34%, rgba(255, 255, 255, 0.12), transparent 28%),
    linear-gradient(100deg, var(--navy-deep) 0%, var(--navy) 56%, #111b21 100%);
  color: var(--white);
  padding: 72px 7vw;
}

.hero__shade {
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.28));
}

.hero__content,
.hero__photo {
  position: relative;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold-soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Playfair Display", Georgia, serif;
}

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(3.5rem, 8vw, 6.9rem);
  line-height: 0.92;
}

h2 {
  color: inherit;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
}

h3 {
  font-size: 1.03rem;
}

.hero__text {
  max-width: 610px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.18rem;
  line-height: 1.65;
}

.hero__badges {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 620px;
  gap: 14px;
  margin: 32px 0;
}

.hero__badges span {
  display: grid;
  min-height: 72px;
  place-items: center;
  border: 1px solid rgba(224, 185, 93, 0.46);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.74rem;
  font-weight: 800;
  padding: 8px;
  text-align: center;
  text-transform: uppercase;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.button,
button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 5px;
  color: var(--white);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0 24px;
  text-decoration: none;
  text-transform: uppercase;
}

.button--gold,
button {
  background: var(--gold);
}

.button--green {
  background: var(--green);
}

.button--blue {
  background: var(--blue);
}

.button--outline {
  border: 1px solid rgba(255, 255, 255, 0.76);
  background: transparent;
}

.button:hover,
button:hover,
.header-button:hover {
  filter: brightness(1.08);
}

.hero__photo {
  min-height: 540px;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

.hero__photo img {
  width: 100%;
  height: 540px;
  object-fit: cover;
  object-position: 56% center;
}

.section {
  padding: 76px 7vw;
}

.section--light {
  background: var(--white);
}

.section--soft {
  background: #efedf6;
}

.section--lottery {
  background: var(--paper);
}

.section-heading {
  display: grid;
  justify-items: center;
  margin-bottom: 34px;
  text-align: center;
}

.section-heading--left {
  justify-items: start;
  text-align: left;
}

.section-heading h2 {
  margin-bottom: 12px;
}

.section-heading span {
  width: 54px;
  height: 3px;
  background: var(--gold);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.service-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 38px rgba(6, 27, 47, 0.08);
}

.service-card__image {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: center;
}

#book-store .service-card__image,
#sleep-reset .service-card__image {
  object-position: top center;
}

.service-card__body {
  padding: 22px;
}

.service-card:nth-child(1) h3,
.service-card:nth-child(1) a {
  color: var(--blue);
}

.service-card:nth-child(2) h3,
.service-card:nth-child(2) a {
  color: var(--green);
}

.service-card:nth-child(3) h3,
.service-card:nth-child(3) a {
  color: var(--purple);
}

.service-card:nth-child(4) h3,
.service-card:nth-child(4) a {
  color: var(--orange);
}

.service-card p,
.resource-grid p,
.contact p,
.lottery-grid p,
.book-showcase p {
  color: var(--muted);
  line-height: 1.62;
}

.service-card a,
.resource-grid a {
  display: inline-flex;
  margin-top: 8px;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 10px 16px;
  text-decoration: none;
  text-transform: uppercase;
}

.about {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(320px, 1.1fr);
  background: var(--navy);
  color: var(--white);
}

.about--text-only {
  grid-template-columns: minmax(0, 980px);
  justify-content: center;
}

.about__photo {
  min-height: 430px;
  overflow: hidden;
}

.about__photo img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  object-position: center top;
}

.about__content {
  padding: 64px 7vw 64px 56px;
}

.about--text-only .about__content {
  padding: 76px 7vw;
}

.about__content h2 {
  margin-bottom: 18px;
}

.about__content p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.66;
}

.about--text-only .about__content p {
  max-width: 920px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 32px 0;
}

.stats strong,
.stats span {
  display: block;
}

.stats strong {
  color: var(--gold-soft);
  font-size: 1.35rem;
}

.stats span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
}

.book-showcase {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 54px;
  align-items: center;
}

.book-showcase > figure {
  display: grid;
  justify-items: center;
}

.book-showcase > figure img {
  width: min(100%, 280px);
  max-height: 430px;
  object-fit: contain;
  filter: drop-shadow(0 26px 34px rgba(6, 27, 47, 0.18));
}

.book-showcase p {
  max-width: 680px;
  font-size: 1.08rem;
}

.mini-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 140px));
  gap: 18px;
  margin: 24px 0;
}

.mini-gallery img {
  width: 100%;
  height: 190px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  object-position: top center;
}

.programs-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 30px;
  align-items: start;
}

.programs-layout > div > h2 {
  margin-bottom: 26px;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.resource-grid article {
  min-width: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  padding: 16px;
  display: grid;
  align-content: start;
  gap: 8px;
}

.resource-image {
  width: 100%;
  height: 210px;
  margin-bottom: 16px;
  border-radius: 8px;
  object-fit: cover;
  object-position: top center;
  background: #fff;
}

.resource-grid h3 {
  margin-bottom: 0;
  color: var(--navy);
}

.resource-grid p {
  margin-bottom: 8px;
  font-size: 0.96rem;
}

.resource-grid a {
  border: 0;
  color: var(--purple);
  padding: 0;
}

.resource-grid .buy-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  background: var(--gold);
  color: var(--white);
  padding: 0 16px;
  width: fit-content;
  align-self: start;
}

.booking-card {
  display: grid;
  min-height: 310px;
  align-content: center;
  justify-items: center;
  border-radius: 8px;
  background: linear-gradient(145deg, #4e267d, #7834a5);
  color: var(--white);
  padding: 28px;
  text-align: center;
}

.booking-card__icon {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 12px;
  font-size: 1.25rem;
  font-weight: 900;
}

.booking-card h2 {
  margin: 18px 0 12px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.35rem;
  line-height: 1.22;
}

.booking-card p {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.92rem;
  line-height: 1.55;
}

.lottery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.lottery-grid article {
  overflow: hidden;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 38px rgba(6, 27, 47, 0.08);
}

.lottery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.lottery-grid h3,
.lottery-grid p {
  padding: 0 20px;
}

.lottery-grid h3 {
  margin-top: 18px;
  color: var(--navy);
}

.lottery-grid p {
  padding-bottom: 22px;
}

.blog-preview {
  background: var(--white);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.blog-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 38px rgba(6, 27, 47, 0.08);
}

.blog-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.blog-card__body,
.blog-card--loading {
  padding: 22px;
}

.blog-card time {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.blog-card h3 {
  color: var(--navy);
  line-height: 1.25;
}

.blog-card p {
  color: var(--muted);
  line-height: 1.6;
}

.blog-card a {
  display: inline-flex;
  margin-top: 6px;
  color: var(--purple);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.blog-actions {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.contact {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(300px, 1fr);
  gap: 50px;
  background: var(--white);
}

.contact-list {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}

.contact-list a,
.contact-list span {
  color: var(--navy);
  font-weight: 800;
  text-decoration: none;
}

.contact-card {
  align-self: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(201, 145, 37, 0.12), transparent 42%),
    var(--paper);
  box-shadow: 0 18px 38px rgba(6, 27, 47, 0.08);
  padding: 30px;
}

.contact-card h3 {
  margin-bottom: 12px;
  color: var(--navy);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2rem;
}

.contact-card p {
  margin-bottom: 22px;
}

.contact-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.contact-card__details {
  display: grid;
  gap: 6px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.contact-card__details span {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-card__details a {
  color: var(--navy);
  font-weight: 800;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 9px 12px;
}

.social-links img,
.footer-social-link img {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.social-links a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.footer {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) repeat(2, minmax(180px, 0.5fr));
  gap: 36px;
  background: var(--navy-deep);
  color: var(--white);
  padding: 52px 7vw;
}

.footer h2,
.footer h3 {
  margin-bottom: 12px;
}

.footer h2 {
  color: var(--gold-soft);
}

.footer a,
.footer p {
  display: block;
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.footer-social-link {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
}

@media (max-width: 1180px) {
  .site-header {
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .nav a::after {
    bottom: -10px;
  }
}

@media (max-width: 1280px) {
  .service-grid,
  .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1050px) {
  .hero,
  .about,
  .contact,
  .programs-layout,
  .book-showcase {
    grid-template-columns: 1fr;
  }

  .hero__photo {
    min-height: 420px;
  }

  .hero__photo img {
    height: 420px;
  }

  .about__content {
    padding: 54px 7vw;
  }

  .lottery-grid,
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 14px;
    align-items: center;
    padding: 10px 18px 8px;
  }

  .brand {
    min-width: 0;
    max-width: 190px;
  }

  .brand__script {
    font-size: 1.48rem;
  }

  .brand__tag {
    font-size: 0.52rem;
  }

  .header-button {
    display: none;
  }

  .language-switch {
    justify-self: end;
    margin-left: 0;
    font-size: 0.68rem;
    white-space: nowrap;
  }

  .language-switch a {
    padding: 7px 7px;
  }

  .nav {
    order: 0;
    grid-column: 1 / -1;
    width: calc(100vw - 36px);
    max-width: calc(100vw - 36px);
    flex-basis: auto;
    justify-content: flex-start;
    gap: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 8px 0 4px;
    scroll-snap-type: x proximity;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .nav a::after {
    bottom: -5px;
  }

  .hero {
    min-height: auto;
    padding: 58px 22px;
  }

  h1 {
    font-size: clamp(2.8rem, 18vw, 4.1rem);
  }

  h2 {
    font-size: clamp(1.85rem, 12vw, 2.5rem);
  }

  .hero__actions .button,
  .button,
  button {
    width: 100%;
  }

  .hero__badges,
  .service-grid,
  .resource-grid,
  .lottery-grid,
  .blog-grid,
  .stats,
  .footer,
  .mini-gallery {
    grid-template-columns: 1fr;
  }

  .service-card__image,
  .lottery-grid img {
    height: 190px;
  }

  .resource-image {
    height: 230px;
  }

  .book-showcase > figure img {
    width: min(100%, 250px);
  }

  .mini-gallery img {
    height: 210px;
  }

  .hero__photo {
    min-height: 300px;
  }

  .hero__photo img {
    height: 340px;
  }

  .section,
  .contact {
    padding: 52px 22px;
  }

  .about__photo,
  .about__photo img {
    min-height: 300px;
  }

  .footer {
    padding: 42px 22px;
  }
}

@media (max-width: 420px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .language-switch {
    margin-left: 0;
  }
}
