/* ==========================================================================
   TraveSync Design Tokens, Reset, Typography, Buttons, Forms
   Mobile-first: base rules target 320px, min-width queries enhance upward.
   ========================================================================== */

:root {
  --logo-purple: #684A90;
  --logo-purple-dark: #523A73;
  --logo-purple-tint: #F1EFF7;
  --accent-coral: #C75B66;
  --bg-dark-grey: #232733;
  --bg-light-grey: #F8FAFC;
  --text-dark: #1E293B;
  --text-muted: #64748B;
  --text-light: #F8FAFC;
  --white: #FFFFFF;
  --border: #E2E8F0;

  --whatsapp-color: #25D366;
  --instagram-color: #E1306C;
  --linkedin-color: #0077B5;
  --x-color: #000000;
  --youtube-color: #FF0000;

  --container-max: 1300px;
  --header-height: 72px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.04);
  --shadow-card-hover: 0 15px 20px -5px rgba(104, 74, 144, 0.1);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-light-grey);
  color: var(--text-dark);
  overflow-x: hidden;
  line-height: 1.5;
}

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

a {
  color: inherit;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

button {
  font-family: inherit;
}

/* --- Accessibility helpers --- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 12px;
  z-index: 10050;
  background: var(--logo-purple);
  color: var(--white);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: 3px solid var(--logo-purple);
  outline-offset: 2px;
}

/* --- Layout primitives --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.page {
  padding: 60px 0;
}

.page + .page {
  border-top: 1px solid var(--border);
}

@media (min-width: 576px) {
  .container { padding: 0 24px; }
}

@media (min-width: 768px) {
  .page { padding: 80px 0; }
}

@media (min-width: 1200px) {
  .container { padding: 0 32px; }
}

/* --- Section headings (shared across pages) --- */
.section-title {
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  text-align: center;
  margin-bottom: 15px;
  color: var(--bg-dark-grey);
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 4px;
  background-color: var(--accent-coral);
  border-radius: 2px;
}

.section-eyebrow {
  display: block;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--logo-purple);
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: 16px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- Buttons --- */
.btn {
  background-color: var(--logo-purple);
  color: var(--white);
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn:hover,
.btn:focus-visible {
  background-color: var(--logo-purple-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--logo-purple);
  border: 1.5px solid var(--logo-purple);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background-color: var(--logo-purple);
  color: var(--white);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  flex-shrink: 0;
}

/* --- Forms --- */
.form-group {
  position: relative;
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-group svg {
  position: absolute;
  left: 14px;
  top: 42px;
  width: 18px;
  height: 18px;
  color: #94A3B8;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: color 0.3s;
  pointer-events: none;
}

.form-group.no-label svg {
  top: 50%;
  transform: translateY(-50%);
}

.form-group.textarea-group svg {
  top: 40px;
}

.form-control {
  width: 100%;
  padding: 14px 16px 14px 44px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 14.5px;
  color: var(--text-dark);
  outline: none;
  transition: all 0.3s ease;
  background-color: var(--bg-light-grey);
  font-family: inherit;
}

.form-control:focus {
  border-color: var(--logo-purple);
  background-color: var(--white);
  box-shadow: 0 0 0 4px rgba(104, 74, 144, 0.1);
}

.form-control:focus + svg {
  color: var(--logo-purple);
}

textarea.form-control {
  resize: none;
  height: 100px;
}

.form-status {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  display: none;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-success {
  background: #ECFDF5;
  color: #047857;
}

.form-status.is-error {
  background: #FEF2F2;
  color: #B91C1C;
}

/* --- Reveal-on-scroll (progressive enhancement; content is visible by default) --- */
.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.js-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
