/* Global tokens, reset, and shared utilities for the Eastar Group static site. */
:root {
  --text-primary: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --bg-white: #ffffff;
  --bg-soft: #f8fafc;
  --bg-tint: #eff6ff;
  --bg-deep: #0f172a;
  --brand: #2563eb;
  --brand-hover: #1d4ed8;
  --brand-light: #60a5fa;
  --brand-pale: #dbeafe;
  --orange: #f97316;
  --orange-hover: #ea580c;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 18px 44px rgba(15, 23, 42, 0.12);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  min-width: 320px;
  overflow-x: clip;
  background: var(--bg-soft);
  color: var(--text-primary);
  font-family: "DM Sans", Arial, sans-serif;
  line-height: 1.6;
  padding-bottom: 0;
}

h1,
h2,
h3,
h4 {
  font-family: "Sora", Arial, sans-serif;
  letter-spacing: 0;
}

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

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.material-symbols-outlined {
  align-items: center;
  direction: ltr;
  display: inline-flex;
  font-family: "Material Symbols Outlined", sans-serif;
  font-size: 24px;
  font-style: normal;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  font-weight: normal;
  justify-content: center;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.site-footer-meta {
  background: var(--bg-deep);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.78rem;
  line-height: 1.7;
  padding: 20px 24px;
  text-align: center;
}

.site-footer-meta a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

.site-footer-meta a:hover {
  color: #ffffff;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.email-float,
.back-to-top {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  height: 46px;
  justify-content: center;
  position: fixed;
  right: 24px;
  text-decoration: none;
  width: 46px;
}

.email-float {
  background: var(--orange);
  bottom: 84px;
  box-shadow: 0 10px 26px rgba(249, 115, 22, 0.28);
  color: #ffffff;
  z-index: 998;
}

.email-float:hover {
  background: var(--orange-hover);
  transform: translateY(-2px);
}

.email-float .material-symbols-outlined {
  color: #ffffff;
  font-size: 1.25rem;
}

.back-to-top {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(226, 232, 240, 0.9);
  bottom: 24px;
  box-shadow: var(--shadow);
  color: var(--text-primary);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.24s ease, transform 0.24s ease, background 0.18s ease;
  z-index: 998;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #ffffff;
  transform: translateY(-2px);
}

.back-to-top .material-symbols-outlined {
  color: var(--text-primary);
  font-size: 1.25rem;
}

.result-hidden {
  display: none !important;
}

@media (max-width: 640px) {
  .email-float {
    display: none;
  }

  .back-to-top {
    bottom: 16px;
    height: 42px;
    right: 16px;
    width: 42px;
  }

  .site-footer-meta {
    padding: 18px 18px;
  }
}
