@import "tailwindcss";

:root {
  --background: #ffffff;
  --foreground: #1c2b33;
  --brand: #1c2b33;
  --brand-deep: #1c2b33;
  --accent: #2b98ba;
  --accent-hover: #2487a6;
  --mint: #4fb0d1;
  --card: #ffffff;
  --muted: #66757d;
  --line: rgba(28, 43, 51, 0.12);
}

@theme inline {
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --color-brand: var(--brand);
  --color-brand-deep: var(--brand-deep);
  --color-accent: var(--accent);
  --color-accent-hover: var(--accent-hover);
  --color-mint: var(--mint);
  --color-card: var(--card);
  --color-muted: var(--muted);
  --color-line: var(--line);
  --font-sans: var(--font-jakarta);
  --font-display: var(--font-sora);
  --font-hand: var(--font-script);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans), system-ui, sans-serif;
}

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

/* All pages: body/heading text stays black; keep teal only for bg/border accents */
@layer utilities {
  .text-brand,
  .text-brand-deep,
  .text-accent,
  .text-mint,
  .text-foreground {
    color: #1c2b33 !important;
  }

  .hover\:text-brand:hover,
  .hover\:text-brand-deep:hover,
  .hover\:text-accent:hover,
  .hover\:text-mint:hover {
    color: #111827 !important;
  }
}

/* Homepage header over hero banner */
.site-header--overlay .site-header__bar,
.site-header--overlay .site-header__bar a,
.site-header--overlay .site-header__bar button {
  color: #ffffff !important;
}

.site-header--overlay .site-header__bar a:hover,
.site-header--overlay .site-header__bar button:hover {
  color: rgba(255, 255, 255, 0.85) !important;
}

.site-header--overlay [role="menu"],
.site-header--overlay [role="menu"] a {
  color: #1c2b33 !important;
}

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

.container-page {
  width: min(1080px, calc(100% - 2rem));
  margin-inline: auto;
}

.dest-scroll {
  scrollbar-width: thin;
  scrollbar-color: #c5ced3 transparent;
}

.dest-scroll::-webkit-scrollbar {
  height: 6px;
}

.dest-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.dest-scroll::-webkit-scrollbar-thumb {
  background: #c5ced3;
  border-radius: 999px;
}

.dest-scroll::-webkit-scrollbar-thumb:hover {
  background: #9aa6ad;
}

.section-pad {
  padding-block: 3.5rem;
}

.btn-accent {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-accent:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-ghost {
  border: 1px solid rgba(28, 43, 51, 0.18);
  color: var(--brand-deep);
  border-radius: 999px;
  background: transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.btn-ghost:hover {
  border-color: var(--accent);
  background: rgba(43, 152, 186, 0.08);
}

.fade-up {
  animation: fadeUp 0.8s ease both;
}

.fade-up-delay {
  animation: fadeUp 0.9s ease 0.15s both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll-triggered reveals (about-us and reusable) */
.scroll-reveal {
  opacity: 0;
  filter: blur(6px);
  will-change: opacity, transform, filter;
}

.scroll-reveal--up {
  transform: translate3d(0, 64px, 0);
}

.scroll-reveal--down {
  transform: translate3d(0, -48px, 0);
}

.scroll-reveal--left {
  transform: translate3d(-72px, 0, 0);
}

.scroll-reveal--right {
  transform: translate3d(72px, 0, 0);
}

.scroll-reveal--fade {
  transform: translate3d(0, 24px, 0);
}

.scroll-reveal--scale {
  transform: scale(0.88) translate3d(0, 24px, 0);
}

.scroll-reveal.is-inview {
  animation: scrollRevealIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--reveal-delay, 0ms);
}

@keyframes scrollRevealIn {
  to {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0) scale(1);
  }
}


/* Infinite Happy moments marquee */
.happy-marquee__track {
  animation: happyMarquee 42s linear infinite;
}

@keyframes happyMarquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes floatSoft {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.float-soft {
  animation: floatSoft 4s ease-in-out infinite;
}

.price-slider {
  position: relative;
  height: 28px;
  display: flex;
  align-items: center;
}

.price-slider__rail {
  position: absolute;
  left: 0;
  right: 0;
  height: 6px;
  border-radius: 999px;
  background: #d7e8ee;
}

.price-slider__fill {
  position: absolute;
  height: 6px;
  border-radius: 999px;
  background: #2b98ba;
}

.price-range {
  -webkit-appearance: none;
  appearance: none;
  pointer-events: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 28px;
  margin: 0;
  background: transparent;
  outline: none;
}

.price-range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: transparent;
  border: none;
}

.price-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  pointer-events: auto;
  width: 22px;
  height: 22px;
  margin-top: -8px;
  border-radius: 999px;
  border: 2px solid #2b98ba;
  background: #ffffff;
  box-shadow: none;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.price-range::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: transparent;
  border: none;
}

.price-range::-moz-range-thumb {
  pointer-events: auto;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 2px solid #2b98ba;
  background: #ffffff;
  box-shadow: none;
  cursor: pointer;
}

.price-range:focus-visible::-webkit-slider-thumb {
  outline: 2px solid rgba(43, 152, 186, 0.35);
  outline-offset: 2px;
}

.price-range:focus-visible::-moz-range-thumb {
  outline: 2px solid rgba(43, 152, 186, 0.35);
  outline-offset: 2px;
}

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

.skeleton {
  background: linear-gradient(90deg, #e4eef2 25%, #f3f8fa 50%, #e4eef2 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

/* Admin TipTap news editor */
.news-editor {
  color: var(--brand-deep);
  font-size: 15px;
  line-height: 1.75;
}

.news-editor p {
  margin: 0.65em 0;
}

.news-editor h1,
.news-editor h2,
.news-editor h3 {
  color: var(--brand-deep);
  font-family: var(--font-display), system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.25;
  margin: 1.1em 0 0.45em;
}

.news-editor h1 {
  font-size: 1.85rem;
}

.news-editor h2 {
  font-size: 1.5rem;
}

.news-editor h3 {
  font-size: 1.25rem;
}

.news-editor ul,
.news-editor ol {
  margin: 0.75em 0;
  padding-left: 1.25rem;
}

.news-editor ul {
  list-style: disc;
}

.news-editor ol {
  list-style: decimal;
}

.news-editor blockquote {
  border-left: 3px solid var(--accent);
  margin: 1em 0;
  padding-left: 1rem;
  color: var(--muted);
  font-style: italic;
}

.news-editor img,
.news-editor .news-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 18px;
  margin: 1rem 0;
}

.news-editor a {
  color: #1c2b33;
  text-decoration: underline;
}

.news-editor p.is-editor-empty:first-child::before {
  color: var(--muted);
  content: attr(data-placeholder);
  float: left;
  height: 0;
  pointer-events: none;
}

.news-prose {
  color: var(--brand-deep);
  font-size: 15px;
  line-height: 1.85;
}

.news-prose p {
  margin: 0.75em 0;
}

.news-prose h1,
.news-prose h2,
.news-prose h3 {
  font-family: var(--font-display), system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.25;
  margin: 1.1em 0 0.45em;
}

.news-prose h1 {
  font-size: 1.85rem;
}

.news-prose h2 {
  font-size: 1.5rem;
}

.news-prose h3 {
  font-size: 1.25rem;
}

.news-prose ul,
.news-prose ol {
  margin: 0.75em 0;
  padding-left: 1.25rem;
}

.news-prose ul {
  list-style: disc;
}

.news-prose ol {
  list-style: decimal;
}

.news-prose blockquote {
  border-left: 3px solid var(--accent);
  margin: 1em 0;
  padding-left: 1rem;
  color: var(--muted);
  font-style: italic;
}

.news-prose img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 18px;
  margin: 1rem 0;
}

.news-prose a {
  color: #1c2b33;
  text-decoration: underline;
}
