/* ==========================================================================
   Bozeman Relocation Guide — stylesheet
   All colors and font stacks live in the :root block below (brand.md).
   Nothing else in this file should declare a raw color or font-family.
   ========================================================================== */

@font-face {
  font-family: "Queens Compressed Thin";
  src: url("../assets/fonts/QueensCompressed_W-Thin.woff") format("woff");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Colors — brand.md */
  --color-black-olive: #32311e;   /* primary text, dark section backgrounds */
  --color-swiss-red: #cf4823;     /* accent only: buttons, links, eyebrows */
  --color-tan: #dad3c1;           /* section backgrounds, borders, dividers */
  --color-ecru-white: #f2f0e3;    /* page background */
  --color-charcoal: #231f20;      /* footer background */
  --color-white: #ffffff;         /* reversed text, card backgrounds */

  /* Fonts — brand.md */
  --font-display: "Queens Compressed Thin", "Cormorant", Georgia, serif; /* H1, large numerals */
  --font-heading: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;  /* H2: uppercase, tracked */
  --font-body: "Karla", -apple-system, BlinkMacSystemFont, sans-serif;    /* body copy */
  --font-accent: "Instrument Serif", Georgia, serif;                      /* accent / pull quote, italic */

  /* Spacing rhythm */
  --section-padding-y: 4.5rem;
  --section-padding-x: 1.25rem;
  --container-max: 72rem;
}

@media (min-width: 60rem) {
  :root {
    --section-padding-y: 7rem;
    --section-padding-x: 2.5rem;
  }
}

/* ---- Reset ---- */
* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-ecru-white);
  color: var(--color-black-olive);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--section-padding-x);
  padding-right: var(--section-padding-x);
}

.section {
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
}

.section--tan {
  background: var(--color-tan);
}

.section--ecru {
  background: var(--color-ecru-white);
}

.eyebrow {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-swiss-red);
  margin: 0 0 0.9rem;
}

.eyebrow--on-dark {
  color: var(--color-white);
  opacity: 0.9;
}

h1,
h2 {
  font-weight: 400;
  margin: 0;
}

h1,
.numeral {
  font-family: var(--font-display);
  font-weight: 100;
}

h2 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
  font-size: 1.4rem;
  line-height: 1.4;
}

@media (min-width: 60rem) {
  h2 {
    font-size: 1.85rem;
  }
}

p {
  margin: 0 0 1rem;
}

.section-head {
  max-width: 40rem;
  margin: 0 0 2.5rem;
}

.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 3.15rem;
  padding: 0 1.75rem;
  background: var(--color-swiss-red);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  opacity: 0.88;
}

/* ==========================================================================
   1. HERO
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  background: var(--color-black-olive);
  overflow: hidden;
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(35, 31, 32, 0.45) 0%,
    rgba(35, 31, 32, 0.15) 35%,
    rgba(35, 31, 32, 0.05) 100%
  );
}

.hero__content {
  position: relative;
  width: 100%;
  padding: 6.5rem 1.25rem 3rem;
}

@media (min-width: 60rem) {
  .hero__content {
    padding: 8rem 2.5rem 5rem;
  }
}

/* Guaranteed-contrast panel behind the hero text, independent of the
   photo underneath — hero photos vary in brightness and busyness, so
   legibility can't depend on where a gradient happens to fall. */
.hero__text {
  background: rgba(35, 31, 32, 0.82);
  padding: 1.5rem var(--section-padding-x) 1.75rem;
  margin: 0 calc(-1 * var(--section-padding-x));
}

@media (min-width: 60rem) {
  .hero__text {
    padding: 2.25rem var(--section-padding-x) 2.75rem;
  }
}

.hero h1 {
  color: var(--color-white);
  font-size: 2.5rem;
  line-height: 1.05;
  max-width: 22ch;
  margin-top: 0.75rem;
}

@media (min-width: 36rem) {
  .hero h1 {
    font-size: 3.4rem;
  }
}

@media (min-width: 60rem) {
  .hero h1 {
    font-size: 4.75rem;
  }
}

.hero__subhead {
  color: var(--color-white);
  opacity: 0.92;
  max-width: 34rem;
  font-size: 0.95rem;
  margin-top: 1.1rem;
}

@media (min-width: 60rem) {
  .hero__subhead {
    font-size: 1.1rem;
  }
}

.hero .btn {
  margin-top: 1.6rem;
}

/* ==========================================================================
   2. WHAT'S INSIDE
   ========================================================================== */

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 40rem) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2.5rem;
  }
}

@media (min-width: 60rem) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  border-top: 1px solid var(--color-black-olive);
  padding-top: 1.1rem;
}

.card__numeral {
  font-size: 2.75rem;
  color: var(--color-swiss-red);
  line-height: 1;
  display: block;
  margin-bottom: 0.5rem;
}

.card h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}

.card p {
  margin: 0;
  font-size: 0.95rem;
}

/* ==========================================================================
   3. A GLIMPSE OF LIFE HERE
   ========================================================================== */

.glimpse__intro {
  max-width: 42rem;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin-top: 2.5rem;
}

@media (min-width: 36rem) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 60rem) {
  .gallery {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery__item {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.5rem 0.9rem 0.85rem;
  background: linear-gradient(to top, rgba(35, 31, 32, 0.75), rgba(35, 31, 32, 0));
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0;
}

/* ==========================================================================
   4. THE FORM
   ========================================================================== */

.form-section__head {
  max-width: 36rem;
  margin: 0 auto 3rem;
  text-align: center;
}

.form-section__credibility {
  font-size: 0.85rem;
  color: var(--color-black-olive);
  opacity: 0.75;
  margin-top: 1rem;
}

.form-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
  max-width: 62rem;
  margin: 0 auto;
}

@media (min-width: 55rem) {
  .form-layout {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 3.5rem;
  }
}

.form-layout__image img {
  width: 100%;
  box-shadow: 0 1.5rem 3rem rgba(35, 31, 32, 0.18);
}

.lead-form {
  background: var(--color-white);
  padding: 1.75rem;
}

@media (min-width: 40rem) {
  .lead-form {
    padding: 2.5rem;
  }
}

.field {
  margin-bottom: 1.35rem;
}

.field label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-black-olive);
  margin-bottom: 0.45rem;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"] {
  width: 100%;
  border: 1px solid var(--color-tan);
  background: var(--color-ecru-white);
  padding: 0.8rem 0.9rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-black-olive);
  border-radius: 2px;
}

.field input:focus {
  outline: 2px solid var(--color-swiss-red);
  outline-offset: 1px;
}

.field--range .range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--color-black-olive);
  opacity: 0.7;
  margin-top: 0.35rem;
}

.field--range .range-value {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-swiss-red);
  margin-bottom: 0.4rem;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--color-swiss-red);
}

.field--checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.field--checkbox input {
  margin-top: 0.2rem;
  accent-color: var(--color-swiss-red);
}

.field--checkbox label {
  text-transform: none;
  letter-spacing: normal;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.9rem;
}

.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;
}

.lead-form .btn {
  width: 100%;
  margin-top: 0.5rem;
}

.consent {
  font-size: 0.74rem;
  color: var(--color-black-olive);
  opacity: 0.65;
  margin-top: 0.9rem;
  margin-bottom: 0;
  line-height: 1.5;
}

/* ==========================================================================
   5. ABOUT
   ========================================================================== */

.about {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 55rem) {
  .about {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
  }
}

.about__image img {
  width: 100%;
  max-width: 24rem;
  margin: 0 auto;
}

@media (min-width: 55rem) {
  .about__image img {
    max-width: none;
  }
}

.about__credentials {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--color-black-olive);
  opacity: 0.75;
  margin-top: 1.25rem;
}

.about__contact {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  margin-top: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.about__contact a {
  color: var(--color-swiss-red);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.about__contact span {
  color: var(--color-black-olive);
  opacity: 0.5;
}

/* ==========================================================================
   6. TESTIMONIALS
   ========================================================================== */

.testimonials {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 55rem) {
  .testimonials {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial {
  background: var(--color-white);
  padding: 2rem 1.75rem;
}

.testimonial__quote {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.5;
  margin: 0 0 1.25rem;
}

.testimonial__attribution {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.7;
  margin: 0;
}

/* ==========================================================================
   7. CROSS-LINK
   ========================================================================== */

.cross-link {
  text-align: center;
  font-size: 0.95rem;
}

.cross-link a {
  color: var(--color-swiss-red);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* ==========================================================================
   8. CLOSING CTA
   ========================================================================== */

.closing-cta {
  background: var(--color-black-olive);
  color: var(--color-white);
  text-align: center;
}

.closing-cta p {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.5rem;
  max-width: 30rem;
  margin: 0 auto 1.75rem;
}

@media (min-width: 60rem) {
  .closing-cta p {
    font-size: 2rem;
  }
}

/* ==========================================================================
   9. FOOTER
   ========================================================================== */

.site-footer {
  background: var(--color-charcoal);
  color: var(--color-tan);
  padding: 1.75rem 1.25rem;
  font-size: 0.8rem;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 40rem) {
  .site-footer .container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.site-footer a {
  color: var(--color-white);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-links {
  display: flex;
  gap: 1.1rem;
}

/* ==========================================================================
   Simple pages: thanks.html / privacy.html
   ========================================================================== */

.simple-page {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.25rem;
}

.simple-page__inner {
  max-width: 34rem;
  text-align: center;
}

.simple-page h1 {
  font-size: 2.75rem;
  color: var(--color-black-olive);
}

@media (min-width: 40rem) {
  .simple-page h1 {
    font-size: 3.5rem;
  }
}

.simple-page .btn {
  margin-top: 1.75rem;
}

.simple-page__signoff {
  margin-top: 2.5rem;
  font-size: 0.9rem;
  opacity: 0.75;
}

.legal {
  max-width: 42rem;
  margin: 0 auto;
  padding: 5rem 1.25rem;
}

.legal h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.legal h2 {
  text-transform: none;
  letter-spacing: normal;
  font-size: 1.15rem;
  margin-top: 2.25rem;
}

.legal p,
.legal li {
  font-size: 0.95rem;
}

.legal .draft-note {
  background: var(--color-tan);
  padding: 1rem 1.25rem;
  font-size: 0.85rem;
  margin-bottom: 2.5rem;
}
