/* ============================================
   The Mid-Term Rental Institute — Shared Styles
   Palette: Navy / Denim / Puerto Rico teal / Apple / Frosted Mint
   ============================================ */

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

:root {
  /* Brand anchors */
  --teal: #0B2B45;          /* navy: bands and dark blocks */
  --teal-dark: #081F33;     /* deep navy: headings, footer */

  /* Accents */
  --gold: #3FC1AA;          /* Puerto Rico teal: primary buttons, highlights */
  --gold-dark: #2FA791;     /* button hover */
  --coral: #1560BD;         /* Denim: small labels and links on light backgrounds */
  --sage: #4FA83D;          /* Apple: small green accents */
  --sage2: #4FA83D;

  /* Surfaces & text */
  --linen: #F6FBFA;         /* page ground */
  --linen-warm: #E6FAF5;    /* Frosted Mint tint for alternating sections */
  --ink: #16293A;
  --ink-soft: #52667A;
  --border: rgba(11, 43, 69, 0.10);

  /* Typography */
  --serif: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--linen);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Nav ---------- */
.site-nav {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}

.nav-mark {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-mark img {
  height: 62px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--coral);
  border-bottom-color: var(--gold);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--gold);
  color: var(--teal-dark);
}
.btn-primary:hover {
  background: var(--gold-dark);
  color: var(--teal-dark);
}

.btn-outline {
  background: transparent;
  color: var(--teal);
  border: 1.5px solid var(--teal);
}
.btn-outline:hover {
  background: var(--teal);
  color: var(--linen);
}

.btn-outline-invert {
  background: transparent;
  color: var(--linen);
  border: 1.5px solid var(--linen);
}
.btn-outline-invert:hover {
  background: var(--linen);
  color: var(--teal-dark);
}

.btn-coral {
  background: var(--coral);
  color: #fff;
}
.btn-coral:hover {
  background: var(--sage);
}

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-family: var(--serif);
  color: var(--teal-dark);
  line-height: 1.15;
  margin: 0 0 0.4em;
}

h1 { font-size: clamp(2.3rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; font-weight: 700; }

p { margin: 0 0 1em; color: var(--ink-soft); max-width: 68ch; }

.lede {
  font-size: 1.2rem;
  color: var(--ink);
  max-width: 56ch;
}

/* ---------- Sections ---------- */
section { padding: 88px 0; }
section.tight { padding: 56px 0; }

.section-alt {
  background: var(--linen-warm);
}

.section-teal {
  background: var(--teal);
  color: var(--linen);
}
.section-teal h1, .section-teal h2, .section-teal h3 { color: var(--linen); }
.section-teal p { color: rgba(248, 246, 241, 0.85); }

/* ---------- Footer ---------- */
footer {
  background: var(--teal-dark);
  color: rgba(248, 246, 241, 0.7);
  padding: 48px 0;
  font-size: 0.92rem;
}
footer a { color: var(--gold); text-decoration: none; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }

@media (max-width: 720px) {
  .nav-links { gap: 20px; }
  .nav-links span.optional { display: none; }
  footer .wrap { flex-direction: column; align-items: flex-start; }
}

.disclosure { flex-basis: 100%; font-size: 0.8rem; opacity: 0.75; }

/* ---------- Contact form ---------- */
.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; color: var(--teal-dark); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: #FFFFFF;
  border: 1.5px solid rgba(11, 43, 69, 0.22);
  border-radius: 8px;
  padding: 12px 14px;
}
.form-field textarea { min-height: 150px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(21, 96, 189, 0.15);
}
.hp { position: absolute; left: -9999px; }

/* ---------- Logo fix: never let the nav squeeze the logo ---------- */
.nav-mark { flex-shrink: 0; }
.nav-mark img { flex-shrink: 0; max-width: none; width: auto; height: 62px; object-fit: contain; }

@media (max-width: 860px) {
  .site-nav .wrap { height: auto; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; gap: 8px 20px; }
  .nav-mark img { height: 48px; }
  .nav-links { gap: 18px; flex-wrap: wrap; }
  .nav-links a { font-size: 0.9rem; }
}
