/* =========================================================================
   TeSalut — company homepage — styles.css
   Plain CSS, one file, no preprocessor. Single mobile breakpoint at 600px,
   same convention as the sister ezCMS PTApp presentation site (see
   js/tools.js's isMobileViewport()). Palette matches the other TeSalut
   properties (dark navy base, gold/orange/blue accents sampled from the
   brand reference + the TeSalut-EC-Web pricing page).
   ========================================================================= */

/* ---------- Design tokens ---------- */
:root {
  --navy-900: #0f151b;
  --navy-800: #151e26;
  --navy-700: #1b2732;
  --navy-600: #22384a;

  --white-soft: rgba(255, 255, 255, 0.92);
  --white-faint: rgba(255, 255, 255, 0.66);
  --white-mute: rgba(255, 255, 255, 0.42);

  --gold: #e3a94b;
  --gold-soft: #f0c481;
  --orange: #fe9901;
  --orange-soft: #fec165;
  --blue: #60b7ff;
  --blue-soft: #8ac9fe;

  --card-bg: rgba(255, 255, 255, 0.035);
  --card-bg-hover: rgba(255, 255, 255, 0.06);
  --card-border: rgba(255, 255, 255, 0.1);

  --container: 1120px;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.35);
  --shadow-gold: 0 16px 44px rgba(227, 169, 75, 0.22), 0 0 0 1px rgba(227, 169, 75, 0.28) inset;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-heading: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--white-faint);
  background:
    radial-gradient(1100px 680px at 50% -6%, var(--navy-600) 0%, transparent 62%),
    radial-gradient(900px 620px at 88% 18%, rgba(254, 153, 1, 0.08) 0%, transparent 55%),
    radial-gradient(900px 620px at 8% 55%, rgba(96, 183, 255, 0.07) 0%, transparent 55%),
    var(--navy-900);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
svg { display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(227, 169, 75, 0.2);
}

/* ---------- Scroll-reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--delay, 0s);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Locale toggle ---------- */
.locale-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 40;
  display: flex;
  gap: 2px;
  padding: 4px;
  background: rgba(15, 21, 27, 0.6);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  backdrop-filter: blur(10px);
}
.locale-toggle button {
  border: none;
  background: transparent;
  color: var(--white-mute);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 7px 13px;
  border-radius: 999px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.locale-toggle button.is-active {
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: #1b120a;
}
.locale-toggle button:not(.is-active):hover { color: var(--white-soft); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 80px;
}
.hero-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  max-width: 160vw;
  background: radial-gradient(circle, rgba(227, 169, 75, 0.14) 0%, rgba(96, 183, 255, 0.06) 40%, transparent 68%);
  pointer-events: none;
}
.hero-orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
}
.hero-orbit svg { width: 100%; height: 100%; }
.orbit-ring { fill: none; stroke: rgba(255, 255, 255, 0.07); stroke-width: 1; }
.orbit-ring--sm { stroke: rgba(255, 255, 255, 0.045); }
.orbit-dot--blue { fill: var(--blue); filter: drop-shadow(0 0 6px rgba(96, 183, 255, 0.9)); }
.orbit-dot--orange { fill: var(--orange); filter: drop-shadow(0 0 6px rgba(254, 153, 1, 0.9)); }
@media (prefers-reduced-motion: reduce) {
  .hero-orbit animateMotion { display: none; }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}
.hero-logo {
  display: inline-block;
  margin-bottom: 40px;
  padding: 20px;
  border-radius: 28px;
  animation: logo-pulse 4.5s ease-in-out infinite;
}
.hero-logo img { width: min(340px, 62vw); height: auto; }
@keyframes logo-pulse {
  0%, 100% { filter: drop-shadow(0 0 22px rgba(227, 169, 75, 0.25)) drop-shadow(0 0 46px rgba(96, 183, 255, 0.12)); }
  50% { filter: drop-shadow(0 0 34px rgba(227, 169, 75, 0.4)) drop-shadow(0 0 64px rgba(96, 183, 255, 0.22)); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-logo { animation: none; }
}

.hero h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--white-soft);
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}
.hero .lead {
  font-size: 18px;
  color: var(--white-faint);
  max-width: 600px;
  margin: 0 auto;
}

.pills-block { margin-top: 56px; }
.pills-intro {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-mute);
  margin-bottom: 20px;
}
.pills-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 26px;
  border-radius: 999px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--white-soft);
  font-weight: 600;
  font-size: 15.5px;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.pill-icon svg { width: 20px; height: 20px; }
.pill-arrow svg { width: 16px; height: 16px; opacity: 0.7; transition: transform 0.3s var(--ease); }
.pill:hover { transform: translateY(-3px); }
.pill:hover .pill-arrow svg { transform: translateX(3px); }

.pill--orange { border-color: rgba(254, 153, 1, 0.35); }
.pill--orange .pill-icon { color: var(--orange-soft); }
.pill--orange:hover { background: rgba(254, 153, 1, 0.1); border-color: var(--orange); box-shadow: 0 14px 34px rgba(254, 153, 1, 0.18); }

.pill--blue { border-color: rgba(96, 183, 255, 0.35); }
.pill--blue .pill-icon { color: var(--blue-soft); }
.pill--blue:hover { background: rgba(96, 183, 255, 0.1); border-color: var(--blue); box-shadow: 0 14px 34px rgba(96, 183, 255, 0.18); }

/* ---------- SERVICES ---------- */
.services-wrap { position: relative; }

.service-section { padding: 96px 0; border-top: 1px solid var(--card-border); }
.service-section--orange { background: radial-gradient(900px 420px at 12% 30%, rgba(254, 153, 1, 0.055) 0%, transparent 60%); }
.service-section--blue { background: radial-gradient(900px 420px at 88% 30%, rgba(96, 183, 255, 0.055) 0%, transparent 60%); }

.service-layout {
  display: flex;
  align-items: center;
  gap: 64px;
}
.service-section:nth-of-type(even) .service-layout { flex-direction: row-reverse; }

.service-visual { flex: 0 0 auto; }
.service-icon-badge {
  width: 116px;
  height: 116px;
  border-radius: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
}
.service-section--orange .service-icon-badge { color: var(--orange-soft); box-shadow: 0 0 0 1px rgba(254, 153, 1, 0.25) inset, 0 24px 50px rgba(254, 153, 1, 0.12); }
.service-section--blue .service-icon-badge { color: var(--blue-soft); box-shadow: 0 0 0 1px rgba(96, 183, 255, 0.25) inset, 0 24px 50px rgba(96, 183, 255, 0.12); }
.service-icon-badge svg { width: 52px; height: 52px; }

.service-text { flex: 1 1 auto; max-width: 620px; }
.service-text h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--white-soft);
  font-size: clamp(24px, 3.2vw, 32px);
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.service-text .lead { font-size: 16.5px; color: var(--white-faint); margin-bottom: 24px; }

.service-highlights { margin-bottom: 32px; }
.service-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  font-size: 15px;
  color: var(--white-faint);
}
.service-highlights .check { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 1px; }
.service-highlights .check svg { width: 20px; height: 20px; }
.service-section--orange .check { color: var(--orange-soft); }
.service-section--blue .check { color: var(--blue-soft); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), filter 0.3s var(--ease);
}
.btn-arrow svg { width: 16px; height: 16px; }
.btn:hover { transform: translateY(-2px); }

.btn-orange { background: linear-gradient(135deg, var(--orange), var(--gold)); color: #241505; box-shadow: 0 14px 34px rgba(254, 153, 1, 0.28); }
.btn-orange:hover { filter: brightness(1.06); }
.btn-blue { background: linear-gradient(135deg, var(--blue), #3f8fe0); color: #06172b; box-shadow: 0 14px 34px rgba(96, 183, 255, 0.28); }
.btn-blue:hover { filter: brightness(1.06); }
.btn-primary { background: linear-gradient(135deg, var(--gold), var(--orange)); color: #241505; box-shadow: var(--shadow-gold); }
.btn-primary:hover { filter: brightness(1.05); }

/* ---------- CONTACT ---------- */
.contact-section { padding: 108px 0 80px; border-top: 1px solid var(--card-border); }
.contact-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.contact-inner h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--white-soft);
  font-size: clamp(26px, 3.6vw, 36px);
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.contact-inner p { font-size: 16.5px; color: var(--white-faint); }

.contact-form-wrap { max-width: 720px; margin: 48px auto 0; }
.contact-form {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-soft);
}
.form-row { display: flex; gap: 20px; }
.form-field { flex: 1 1 0; margin-bottom: 20px; }
.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--white-faint);
  margin-bottom: 8px;
}
.form-field input,
.form-field textarea,
.select-wrap select {
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--white-soft);
  font-family: inherit;
  font-size: 14.5px;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--white-mute); }
.form-field input:focus,
.form-field textarea:focus,
.select-wrap select:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(227, 169, 75, 0.06);
}
.form-field textarea { resize: vertical; min-height: 110px; }

.select-wrap { position: relative; }
.select-wrap select { appearance: none; cursor: pointer; padding-right: 36px; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 15px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--white-mute);
  border-bottom: 2px solid var(--white-mute);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.select-wrap select option { background: var(--navy-800); color: var(--white-soft); }

.form-submit { width: 100%; justify-content: center; margin-top: 8px; }
.form-note { font-size: 13px; color: var(--white-mute); text-align: center; margin-top: 16px; }

.contact-methods-wrap { margin-top: 48px; }
.contact-methods {
  display: flex;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
}
.contact-method .label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white-mute);
  margin-bottom: 8px;
}
.contact-method .value {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--white-soft);
  transition: color 0.25s var(--ease);
}
.contact-method .value:hover { color: var(--gold-soft); }
.phone-list { display: flex; flex-direction: column; gap: 4px; }

/* ---------- FOOTER ---------- */
.site-footer {
  padding: 48px 24px 40px;
  text-align: center;
  border-top: 1px solid var(--card-border);
}
.footer-logo { width: 108px; margin: 0 auto 16px; opacity: 0.9; }
.footer-tagline { font-size: 14px; color: var(--white-faint); margin-bottom: 6px; }
.footer-copyright { font-size: 12.5px; color: var(--white-mute); }

/* ---------- BACK TO TOP ---------- */
/* Stands in for a persistent nav this page deliberately doesn't have --
   hidden until initBackToTop() (site.js) adds .is-visible past the hero. */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: #241505;
  box-shadow: var(--shadow-gold);
  opacity: 0;
  transform: translateY(14px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), filter 0.25s var(--ease);
}
.back-to-top.is-visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.back-to-top:hover { filter: brightness(1.08); transform: translateY(-2px); }
.back-to-top svg { width: 22px; height: 22px; }
@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: opacity 0.2s linear; }
  .back-to-top:hover { transform: none; }
}
@media (max-width: 600px) {
  .back-to-top { right: 14px; bottom: 14px; width: 44px; height: 44px; }
}

/* ---------- Mobile (single breakpoint, same convention as the app) ---------- */
@media (max-width: 600px) {
  .hero { padding: 96px 0 60px; min-height: 92vh; }
  .hero-logo { padding: 12px; margin-bottom: 28px; }
  .hero .lead { font-size: 16px; }
  .pills-row { flex-direction: column; align-items: stretch; }
  .pill { justify-content: center; }

  .service-section { padding: 64px 0; }
  .service-layout,
  .service-section:nth-of-type(even) .service-layout {
    flex-direction: column;
    text-align: center;
    gap: 28px;
  }
  .service-text { max-width: 100%; }
  .service-highlights li { text-align: left; }
  .service-icon-badge { width: 92px; height: 92px; border-radius: 26px; }
  .service-icon-badge svg { width: 42px; height: 42px; }

  .contact-section { padding: 72px 0 56px; }
  .contact-form { padding: 26px; }
  .form-row { flex-direction: column; gap: 0; }
  .contact-methods { gap: 32px; }

  .locale-toggle { top: 14px; right: 14px; }
}
