/* ===== Jedira fonts ===== */
/* Brand family: regular + italic */
@font-face {
  font-family: "Jedira";
  src: url("fonts/Jedira-Regular.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Jedira";
  src: url("fonts/Jedira-Italic.otf") format("opentype");
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}
/* Alternate cuts */
@font-face {
  font-family: "Jedira Alt";
  src: url("fonts/Jedira-Regular 2.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Jedira Script";
  src: url("fonts/Jedira-Italic 2.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Jedira Script Alt";
  src: url("fonts/Jedira-Italic 3.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --teal: #1c7a81;
  --teal-deep: #115359;
  --teal-soft: #4ba7ae;
  --cream: #f6f1e7;
  --cream-2: #efe6d6;
  --ink: #163b3e;
  --brand-font: "Jedira", "Cormorant Garamond", "Georgia", serif;
  --brand-alt: "Jedira Alt", "Jedira", "Georgia", serif;
  --brand-script: "Jedira Script", "Jedira", "Georgia", serif;
  --brand-script-alt: "Jedira Script Alt", "Jedira", "Georgia", serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Visually hidden but accessible to screen readers & search/answer engines */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html, body {
  min-height: 100%;
  width: 100%;
  overflow-x: hidden;
}

html {
  scrollbar-color: var(--teal) var(--cream-2);
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--cream-2);
}

::-webkit-scrollbar-thumb {
  background: var(--teal);
  border: 2px solid var(--cream-2);
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--teal-deep);
}

body {
  font-family: var(--brand-font);
  color: var(--ink);
  background:
    radial-gradient(120% 90% at 50% 0%, var(--cream) 0%, var(--cream-2) 55%, #e6dac6 100%);
  -webkit-font-smoothing: antialiased;
}

.page {
  position: relative;
  min-height: 100dvh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1rem, 3.2vh, 2.2rem);
  padding: clamp(1rem, 3vh, 2rem) clamp(1rem, 5vw, 2rem);
  overflow: hidden;
}

/* Decorative glows */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}
.glow--one {
  width: 45vmax;
  height: 45vmax;
  top: -18vmax;
  left: -14vmax;
  background: radial-gradient(circle, var(--teal-soft), transparent 60%);
}
.glow--two {
  width: 40vmax;
  height: 40vmax;
  bottom: -16vmax;
  right: -12vmax;
  background: radial-gradient(circle, var(--teal), transparent 60%);
  opacity: 0.15;
}

/* Background slideshow */
.bg-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.bg-slideshow .bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.6s ease-in-out;
}
.bg-slideshow .bg-slide.is-active {
  opacity: 1;
}
.bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(246, 241, 231, 0.28) 0%, rgba(239, 230, 214, 0.34) 55%, rgba(230, 218, 198, 0.42) 100%);
}

.card {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(0.5rem, 1.8vh, 1.1rem);
  max-width: 640px;
  width: 100%;
}

.logo {
  width: clamp(160px, 30vh, 280px);
  height: auto;
  margin-bottom: clamp(0.4rem, 1.6vh, 1rem);
  filter: drop-shadow(0 8px 22px rgba(28, 122, 129, 0.25));
}

.eyebrow {
  font-family: var(--brand-alt);
  font-size: clamp(0.78rem, 2.6vw, 1rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal-deep);
  opacity: 0.85;
}

.title {
  font-family: var(--brand-font);
  font-size: clamp(2.6rem, 11vw, 5rem);
  line-height: 1;
  font-weight: 600;
  color: var(--teal);
  margin: clamp(0.2rem, 1vh, 0.6rem) 0 clamp(0.2rem, 0.8vh, 0.5rem);
  letter-spacing: 0.02em;
}

.subtitle {
  font-family: var(--brand-font);
  font-style: italic;
  font-size: clamp(0.95rem, 3.4vw, 1.35rem);
  color: var(--teal-deep);
  letter-spacing: 0.04em;
}

.services {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: center;
  gap: clamp(0.5rem, 1.6vh, 0.9rem) clamp(0.35rem, 1.4vw, 0.6rem);
  margin: clamp(1rem, 3vh, 1.8rem) 0;
  max-width: 560px;
}
.services li {
  font-family: var(--brand-script);
  font-size: clamp(0.72rem, 2.6vw, 0.92rem);
  letter-spacing: 0.04em;
  padding: 0.35em 0.85em;
  border: 1px solid rgba(28, 122, 129, 0.35);
  border-radius: 999px;
  color: var(--teal-deep);
  background: rgba(255, 255, 255, 0.4);
  white-space: nowrap;
}

.links {
  display: flex;
  flex-direction: column;
  gap: clamp(0.6rem, 1.8vh, 0.9rem);
  width: 100%;
  max-width: 420px;
  margin: clamp(1rem, 3vh, 1.8rem) 0;
}
.link-button {
  display: block;
  font-family: var(--brand-alt);
  font-size: clamp(0.95rem, 3.2vw, 1.15rem);
  letter-spacing: 0.04em;
  text-align: center;
  text-decoration: none;
  padding: 0.85em 1.2em;
  border-radius: 999px;
  color: #fff;
  background: var(--teal);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 18px rgba(28, 122, 129, 0.3);
  transition: transform 0.2s ease, background 0.2s ease;
}
.link-button:hover,
.link-button:focus-visible {
  transform: translateY(-3px);
  background: var(--teal-deep);
  outline: none;
}

.pin-icon {
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  margin-right: 0.4em;
  fill: currentColor;
}

.link-button--form {
  background: var(--teal-deep);
  font-weight: 600;
}

.socials {
  display: flex;
  gap: clamp(0.7rem, 3vw, 1.1rem);
  margin-top: clamp(0.3rem, 1vh, 0.6rem);
}
.social {
  width: clamp(32px, 8vw, 40px);
  height: clamp(32px, 8vw, 40px);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  box-shadow: 0 8px 18px rgba(28, 122, 129, 0.3);
  transition: transform 0.2s ease, background 0.2s ease;
}
.social svg {
  width: 52%;
  height: 52%;
  fill: currentColor;
}
.social:hover,
.social:focus-visible {
  transform: translateY(-4px);
  background: var(--teal-deep);
  outline: none;
}

.footer {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1rem;
  text-align: center;
  font-family: var(--brand-script-alt);
  font-size: clamp(0.7rem, 2.4vw, 0.85rem);
  color: var(--teal-deep);
  line-height: 1.5;
  opacity: 0.9;
  padding: 0 1rem;
}
.footer p {
  margin: 0;
}
.footer a {
  color: var(--teal);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.footer a:hover,
.footer a:focus-visible {
  border-color: var(--teal);
  outline: none;
}

/* Short / landscape phones — tighten further */
@media (max-height: 620px) {
  .services { margin: 0.5rem 0; }
  .logo { margin-bottom: 0.3rem; }
}

/* ===== Mobile responsiveness ===== */

/* Tablets / large phones */
@media (max-width: 768px) {
  .services {
    grid-template-columns: repeat(3, auto);
    max-width: 100%;
  }
}

/* Phones */
@media (max-width: 560px) {
  .page {
    gap: clamp(0.8rem, 2.4vh, 1.4rem);
    padding: clamp(1.5rem, 5vh, 2.5rem) 1rem;
  }
  .card {
    gap: clamp(0.5rem, 1.6vh, 0.9rem);
  }
  .services {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    gap: 0.5rem;
  }
  .services li {
    white-space: normal;
    text-align: center;
    font-size: clamp(0.74rem, 3.4vw, 0.9rem);
    padding: 0.45em 0.6em;
  }
  .footer {
    flex-direction: column;
    gap: 0.25rem;
  }
}

/* Small phones */
@media (max-width: 360px) {
  .services {
    grid-template-columns: 1fr;
  }
  .eyebrow {
    letter-spacing: 0.16em;
  }
}

/* Allow scrolling when content can't fit the viewport */
@media (max-height: 560px) {
  html, body {
    overflow: auto;
  }
  .footer {
    margin-top: 1rem;
  }
}
