/* Sharp — static site custom styles
   Tailwind utility classes are provided by the Play CDN in each HTML file.
   This file holds the custom @apply-style component classes and keyframes
   so they stay outside Tailwind's JIT runtime. */

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: 'Inter', system-ui, sans-serif; color: #1D1D1D; background: #fff; }
h1, h2, h3, h4 { font-family: 'Space Grotesk', 'Inter', sans-serif; letter-spacing: -0.025em; }

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: 9999px; background: #2152A1; padding: 0.75rem 1.5rem;
  font-size: 0.875rem; font-weight: 600; color: #fff;
  white-space: nowrap; line-height: 1.25;
  transition: all .2s ease; cursor: pointer; border: 0;
}
.btn-primary:hover { background: #2A63BD; box-shadow: 0 10px 20px -5px rgba(33,82,161,0.35); }
.btn-primary:active { transform: scale(0.95); }
.btn-primary:disabled { pointer-events: none; opacity: 0.6; }

/* On dark surfaces the brand blue sits at only 2.2:1 against navy — the CTA reads as
   another navy block. Dark sections use the teal accent instead (5.3:1 with navy-900). */
.bg-navy-900 .btn-primary,
.bg-navy-950 .btn-primary,
#site-header.bg-transparent .btn-primary { background: #57A5A0; color: #0C1E3C; }
.bg-navy-900 .btn-primary:hover,
.bg-navy-950 .btn-primary:hover,
#site-header.bg-transparent .btn-primary:hover { background: #79BAB6; box-shadow: 0 10px 20px -5px rgba(87,165,160,0.35); }

.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: 9999px; background: #fff; padding: 0.75rem 1.5rem;
  font-size: 0.875rem; font-weight: 600; color: #17396F;
  white-space: nowrap; line-height: 1.25;
  border: 1px solid #A8BFDE; transition: all .2s ease; cursor: pointer;
}
.btn-secondary:hover { border-color: #4570AF; background: #EEF3FA; }
.btn-secondary:active { transform: scale(0.95); }

.btn-ghost-dark {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: 9999px; padding: 0.75rem 1.5rem;
  font-size: 0.875rem; font-weight: 600; color: #fff;
  white-space: nowrap; line-height: 1.25;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(8px); transition: all .2s ease; cursor: pointer;
}
.btn-ghost-dark:hover { background: rgba(255,255,255,0.1); }
.btn-ghost-dark:active { transform: scale(0.95); }

/* Layout */
.container-x { margin-left: auto; margin-right: auto; max-width: 80rem; padding-left: 1.5rem; padding-right: 1.5rem; }
@media (min-width: 1024px) { .container-x { padding-left: 2rem; padding-right: 2rem; } }
.section-y { padding-top: 5rem; padding-bottom: 5rem; }
@media (min-width: 768px) { .section-y { padding-top: 7rem; padding-bottom: 7rem; } }

/* Eyebrows */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border-radius: 9999px; border: 1px solid rgba(59,136,132,0.3);
  background: rgba(59,136,132,0.1); padding: 0.25rem 0.75rem;
  font-size: 0.75rem; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.05em; color: #265855;
}
.eyebrow-dark {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border-radius: 9999px; border: 1px solid rgba(87,165,160,0.35);
  background: rgba(87,165,160,0.12); padding: 0.25rem 0.75rem;
  font-size: 0.75rem; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.05em; color: #79BAB6;
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(to right, #57A5A0, #A6D3D0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Animations */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes glow { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }
@keyframes typingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-3px); opacity: 1; }
}
@keyframes phoneTabIn { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: translateX(0); } }

.animate-fade-in { animation: fadeIn 0.6s ease-out; }
.animate-fade-up { animation: fadeUp 0.8s ease-out; }
.animate-float { animation: float 6s ease-in-out infinite; }
.animate-glow { animation: glow 3s ease-in-out infinite; }
.animate-typing-dot { animation: typingDot 1.2s ease-in-out infinite; }
.phone-tab-enter { animation: phoneTabIn 250ms ease forwards; }

/* Native <details> chevron rotation */
details[open] summary .faq-icon { transform: rotate(45deg); background: #3B8884; color: #fff; }
details summary { list-style: none; }
details summary::-webkit-details-marker { display: none; }

/* Form elements (dark-on-light) */
.input {
  margin-top: 0.5rem; width: 100%; border-radius: 0.5rem;
  border: 1px solid #7396C5; background: #fff; padding: 0.625rem 0.875rem;
  font-size: 0.875rem; color: #1D1D1D; transition: all .2s ease;
}
.input::placeholder { color: #7396C5; }
.input:focus { outline: none; border-color: #3B8884; box-shadow: 0 0 0 2px rgba(59,136,132,0.25); }
textarea.input { resize: none; }

/* Form elements (light-on-dark, used in ContactCTA) */
.input-dark {
  margin-top: 0.5rem; width: 100%; border-radius: 0.5rem;
  border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.05);
  padding: 0.625rem 0.875rem; font-size: 0.875rem; color: #fff;
  transition: all .2s ease;
}
.input-dark::placeholder { color: rgba(255,255,255,0.3); }
.input-dark:focus { outline: none; border-color: #57A5A0; background: rgba(255,255,255,0.1); box-shadow: 0 0 0 2px rgba(87,165,160,0.25); }
textarea.input-dark { resize: none; }

/* Step option button */
.option {
  border-radius: 0.5rem; border: 1px solid #7396C5; background: #fff;
  padding: 0.625rem 0.875rem; font-size: 0.875rem; font-weight: 500;
  color: #17396F; transition: all .2s ease; cursor: pointer; text-align: center;
}
.option:hover { border-color: #7396C5; background: #EEF3FA; }
.option.selected {
  border-color: #3B8884; background: rgba(59,136,132,0.1);
  color: #17396F; box-shadow: 0 0 0 1px #3B8884;
}

/* Card hover (replicates the hover shadow used across the site) */
.card-hover { transition: all .2s ease; }
.card-hover:hover { transform: translateY(-4px); box-shadow: 0 25px 50px -12px rgba(12,30,60,0.10); }

/* Utility: scrollbar hide for category pills */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Locale switcher button states */
.locale-btn { opacity: 0.7; }
.locale-btn:hover { opacity: 1; }
.locale-btn[data-active="true"] { background: #17396F; color: #fff; opacity: 1; }
.locale-btn.dark[data-active="true"] { background: #57A5A0; color: #0C1E3C; }

/* Blog tag filter — active pill */
.blog-tag-active { background: #17396F !important; color: #fff !important; }

/* Header offset helper for anchored sections so the fixed navbar doesn't
   cover them when navigating via in-page hash links. */
section[id] { scroll-margin-top: 4.5rem; }

