/* ==========================================================================
   Four Paws Movers — Reference Stylesheet
   Palette & type derived from the "Viajes RC" brand exploration
   (deep teal / signal orange / warm cream, set in Montserrat).
   Import this as the base stylesheet for every page of the site.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
  /* Brand palette */
  --fpm-teal: #013440;         /* primary ink / headings / icon */
  --fpm-teal-700: #012530;     /* hover / pressed state on teal elements */
  --fpm-orange: #FD5E02;       /* accent / CTAs / links / highlights */
  --fpm-orange-700: #D94E00;   /* hover / pressed state on orange elements */
  --fpm-cream: #F0ECEC;        /* page background */
  --fpm-white: #FFFFFF;        /* card / surface background */
  --fpm-ink-muted: rgba(1, 52, 64, 0.7);   /* secondary text on light bg */
  --fpm-ink-faint: rgba(1, 52, 64, 0.45);  /* captions, helper text */
  --fpm-border: rgba(1, 52, 64, 0.14);     /* hairlines, card borders, input borders */
  --fpm-success: #1E7A46;
  --fpm-error: #C23B22;

  /* Typography */
  --fpm-font: 'Montserrat', 'Segoe UI', Helvetica, Arial, sans-serif;
  --fpm-size-h1: 44px;
  --fpm-size-h2: 32px;
  --fpm-size-h3: 24px;
  --fpm-size-h4: 18px;
  --fpm-size-body: 16px;
  --fpm-size-small: 14px;
  --fpm-size-caption: 12px;
  --fpm-line-tight: 1.2;
  --fpm-line-body: 1.6;

  /* Spacing scale (4px base) */
  --fpm-space-1: 4px;
  --fpm-space-2: 8px;
  --fpm-space-3: 12px;
  --fpm-space-4: 16px;
  --fpm-space-5: 24px;
  --fpm-space-6: 32px;
  --fpm-space-7: 48px;
  --fpm-space-8: 64px;
  --fpm-space-9: 96px;

  /* Radius & shadow */
  --fpm-radius-sm: 6px;
  --fpm-radius-md: 12px;
  --fpm-radius-lg: 20px;
  --fpm-radius-pill: 999px;
  --fpm-shadow-sm: 0 2px 8px rgba(1, 52, 64, 0.08);
  --fpm-shadow-md: 0 12px 32px rgba(1, 52, 64, 0.14);

  /* Layout */
  --fpm-container-max: 1180px;
  --fpm-header-height: 84px;
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--fpm-font);
  font-size: var(--fpm-size-body);
  line-height: var(--fpm-line-body);
  color: var(--fpm-teal);
  background: var(--fpm-cream);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--fpm-orange); text-decoration: none; }
a:hover { color: var(--fpm-orange-700); text-decoration: underline; }

h1, h2, h3, h4, h5 {
  font-family: var(--fpm-font);
  font-weight: 800;
  line-height: var(--fpm-line-tight);
  color: var(--fpm-teal);
  margin: 0 0 var(--fpm-space-4);
}
h1 { font-size: var(--fpm-size-h1); letter-spacing: 0.2px; }
h2 { font-size: var(--fpm-size-h2); }
h3 { font-size: var(--fpm-size-h3); font-weight: 700; }
h4 { font-size: var(--fpm-size-h4); font-weight: 700; }

p { margin: 0 0 var(--fpm-space-4); color: var(--fpm-ink-muted); }

.small { font-size: var(--fpm-size-small); }
.caption { font-size: var(--fpm-size-caption); color: var(--fpm-ink-faint); }
.eyebrow {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--fpm-orange);
}

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--fpm-container-max);
  margin: 0 auto;
  padding: 0 var(--fpm-space-5);
}

.section { padding: var(--fpm-space-8) 0; }
.section--tight { padding: var(--fpm-space-6) 0; }
.section--dark { background: var(--fpm-teal); color: var(--fpm-white); padding: calc(var(--fpm-space-8)) 0; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--fpm-white); }
.section--dark p { color: rgba(255, 255, 255, 0.78); }

.grid { display: grid; gap: var(--fpm-space-5); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.gap-2 { gap: var(--fpm-space-2); }
.gap-3 { gap: var(--fpm-space-3); }
.gap-4 { gap: var(--fpm-space-4); }
.gap-5 { gap: var(--fpm-space-5); }

@media (max-width: 960px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  :root { --fpm-size-h1: 32px; --fpm-size-h2: 26px; --fpm-size-h3: 20px; }
}

/* --------------------------------------------------------------------------
   Header / nav
   -------------------------------------------------------------------------- */
.site-header {
  height: var(--fpm-header-height);
  display: flex;
  align-items: center;
  background: var(--fpm-white);
  border-bottom: 1px solid var(--fpm-border);
  position: sticky;
  top: 0;
  z-index: 40;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }

.brand { display: flex; align-items: center; gap: var(--fpm-space-3); }
.brand-mark { width: 40px; height: 40px; }
.brand-word { font-weight: 800; font-size: 20px; color: var(--fpm-teal); line-height: 1; }
.brand-word span { color: var(--fpm-orange); }

.nav-links { display: flex; align-items: center; gap: var(--fpm-space-6); }
.nav-links a {
  color: var(--fpm-teal);
  font-weight: 600;
  font-size: var(--fpm-size-small);
  text-decoration: none;
}
.nav-links a:hover { color: var(--fpm-orange); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--fpm-space-2);
  font-family: var(--fpm-font);
  font-weight: 700;
  font-size: var(--fpm-size-small);
  letter-spacing: 0.4px;
  padding: 14px 28px;
  border-radius: var(--fpm-radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--fpm-orange); color: var(--fpm-white); }
.btn--primary:hover { background: var(--fpm-orange-700); color: var(--fpm-white); text-decoration: none; }

.btn--secondary { background: var(--fpm-teal); color: var(--fpm-white); }
.btn--secondary:hover { background: var(--fpm-teal-700); color: var(--fpm-white); text-decoration: none; }

.btn--outline { background: transparent; border-color: var(--fpm-teal); color: var(--fpm-teal); }
.btn--outline:hover { background: var(--fpm-teal); color: var(--fpm-white); text-decoration: none; }

.btn--on-dark { background: var(--fpm-white); color: var(--fpm-teal); }
.btn--on-dark:hover { background: var(--fpm-cream); text-decoration: none; }

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card {
  background: var(--fpm-white);
  border: 1px solid var(--fpm-border);
  border-radius: var(--fpm-radius-md);
  padding: var(--fpm-space-6);
  box-shadow: var(--fpm-shadow-sm);
}
.card--service { text-align: left; }
.card--service .icon {
  width: 48px;
  height: 48px;
  border-radius: var(--fpm-radius-sm);
  background: rgba(253, 94, 2, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--fpm-space-4);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--fpm-space-2);
  background: rgba(253, 94, 2, 0.1);
  color: var(--fpm-orange-700);
  font-weight: 700;
  font-size: var(--fpm-size-caption);
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--fpm-radius-pill);
}

/* --------------------------------------------------------------------------
   Tables (pricing, fee schedules)
   -------------------------------------------------------------------------- */
table.pricing { width: 100%; border-collapse: collapse; background: var(--fpm-white); border-radius: var(--fpm-radius-md); overflow: hidden; box-shadow: var(--fpm-shadow-sm); }
table.pricing th, table.pricing td { padding: var(--fpm-space-4); text-align: left; border-bottom: 1px solid var(--fpm-border); font-size: var(--fpm-size-small); }
table.pricing th { background: var(--fpm-teal); color: var(--fpm-white); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; font-size: var(--fpm-size-caption); }
table.pricing tr:last-child td { border-bottom: none; }
table.pricing tr:nth-child(even) td { background: rgba(1, 52, 64, 0.03); }

/* --------------------------------------------------------------------------
   Forms (contact + inquiry pages)
   -------------------------------------------------------------------------- */
.form { display: flex; flex-direction: column; gap: var(--fpm-space-5); }
.form-section { display: flex; flex-direction: column; gap: var(--fpm-space-4); padding-bottom: var(--fpm-space-5); border-bottom: 1px solid var(--fpm-border); }
.form-section:last-child { border-bottom: none; }
.form-section-title { font-weight: 800; font-size: var(--fpm-size-h4); color: var(--fpm-teal); }
.form-section-hint { font-size: var(--fpm-size-small); color: var(--fpm-ink-faint); margin-top: -8px; }

.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--fpm-space-4); }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: var(--fpm-space-2); }
.field label { font-weight: 600; font-size: var(--fpm-size-small); color: var(--fpm-teal); }
.field .required { color: var(--fpm-orange); margin-left: 2px; }
.field-help { font-size: var(--fpm-size-caption); color: var(--fpm-ink-faint); }

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="number"],
select,
textarea {
  font-family: var(--fpm-font);
  font-size: var(--fpm-size-body);
  color: var(--fpm-teal);
  background: var(--fpm-white);
  border: 1.5px solid var(--fpm-border);
  border-radius: var(--fpm-radius-sm);
  padding: 12px 14px;
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--fpm-orange);
  box-shadow: 0 0 0 3px rgba(253, 94, 2, 0.15);
}
textarea { min-height: 120px; resize: vertical; }

select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path d='M1 1l6 6 6-6' stroke='%23013440' stroke-width='2' fill='none' fill-rule='evenodd'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/* Yes/No toggle pair, used for all Yes/No dropdown fields */
.field select.yesno { max-width: 160px; }

fieldset { border: none; margin: 0; padding: 0; }
legend { font-weight: 800; font-size: var(--fpm-size-h4); color: var(--fpm-teal); padding: 0; margin-bottom: var(--fpm-space-3); }

/* Breed autocomplete */
.autocomplete-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 30;
  margin-top: 4px;
  background: var(--fpm-white);
  border: 1.5px solid var(--fpm-border);
  border-radius: var(--fpm-radius-sm);
  max-height: 220px;
  overflow-y: auto;
  box-shadow: var(--fpm-shadow-md);
}
.autocomplete-menu.open { display: block; }
.autocomplete-option {
  padding: 10px 14px;
  font-size: var(--fpm-size-small);
  color: var(--fpm-teal);
  cursor: pointer;
}
.autocomplete-option:hover,
.autocomplete-option.active { background: rgba(253, 94, 2, 0.08); }
.autocomplete-empty {
  padding: 10px 14px;
  font-size: var(--fpm-size-small);
  color: var(--fpm-ink-faint);
}

/* Conditional field wrapper (e.g. air-transport pickup/drop-off airports) */
.field-conditional {
  border-left: 3px solid var(--fpm-orange);
  padding-left: var(--fpm-space-4);
  margin-left: var(--fpm-space-1);
}

/* --------------------------------------------------------------------------
   FAQ (accordion)
   -------------------------------------------------------------------------- */
.faq-item { border-bottom: 1px solid var(--fpm-border); padding: var(--fpm-space-5) 0; }
.faq-question { font-weight: 700; font-size: var(--fpm-size-h4); color: var(--fpm-teal); margin: 0 0 var(--fpm-space-2); }
.faq-answer { color: var(--fpm-ink-muted); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--fpm-teal); color: rgba(255, 255, 255, 0.75); padding: var(--fpm-space-8) 0 var(--fpm-space-6); }
.site-footer a { color: var(--fpm-white); }
.site-footer a:hover { color: var(--fpm-orange); }
.site-footer .caption { color: rgba(255, 255, 255, 0.5); }

/* --------------------------------------------------------------------------
   Utility
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.text-orange { color: var(--fpm-orange); }
.text-muted { color: var(--fpm-ink-muted); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
