@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --cream: #f5efe4;
  --paper: #fffaf2;
  --ink: #1f2925;
  --muted: #5f6763;
  --orange: #e2471b;
  --orange-dark: #b93612;
  --gold: #d89b2b;
  --border: #ddd3c3;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--cream); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--cream);
  color: var(--ink);
  font-family: "Inter", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.page-shell {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 0;
}

.review-card {
  width: 100%;
  max-width: 30rem;
  overflow: hidden;
  background: var(--paper);
}

/* header: real crew photo, logo badge sits across its lower edge */
.hero {
  position: relative;
  height: clamp(9.5rem, 40vw, 12rem);
  border-bottom: 2px solid var(--gold);
  background: #d8d2c8;
}

.hero > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 54% 49%;
}

.badge {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 50%);
  padding: 0.8rem 1.4rem 0.7rem;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: 0 0.6rem 1.4rem rgba(31, 41, 37, 0.12);
}

.brand-logo {
  width: 6.6rem;
  height: auto;
  display: block;
}

.card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4.9rem clamp(1.25rem, 7vw, 2.25rem) 1.6rem;
  text-align: center;
}

.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--orange-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

h1 {
  max-width: 14ch;
  margin: 0;
  font-family: "Archivo", Arial, sans-serif;
  font-size: clamp(2rem, 9vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.04;
  text-wrap: balance;
}

.intro {
  max-width: 24rem;
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

/* rating panel */
.rate {
  width: 100%;
  margin-top: 1.5rem;
  padding: 1.1rem 1rem 1rem;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 1.1rem;
}

.stars {
  display: flex;
  justify-content: center;
  gap: clamp(0rem, 1.5vw, 0.3rem);
  margin: 0 0 1rem;
}

.star {
  width: 3.5rem;
  height: 3.5rem;
  display: grid;
  flex: 0 1 3.5rem;
  place-items: center;
  border-radius: 50%;
  text-decoration: none;
  transition: transform 160ms ease;
  -webkit-tap-highlight-color: transparent;
}

.star-icon {
  width: 2.6rem;
  height: 2.6rem;
  overflow: visible;
  fill: transparent;
  stroke: var(--orange);
  stroke-linejoin: round;
  stroke-width: 1.35;
  animation: fill-star 420ms ease-out forwards;
}

.star:nth-child(1) .star-icon { animation-delay: 120ms; }
.star:nth-child(2) .star-icon { animation-delay: 220ms; }
.star:nth-child(3) .star-icon { animation-delay: 320ms; }
.star:nth-child(4) .star-icon { animation-delay: 420ms; }
.star:nth-child(5) .star-icon { animation-delay: 520ms; }

.star:active { transform: scale(0.92); }

.star:focus-visible,
.review-button:focus-visible,
.phone:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.review-button {
  width: 100%;
  min-height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border-radius: 0.8rem;
  background: var(--orange);
  color: #ffffff;
  font-family: "Archivo", Arial, sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 0.5rem 1.1rem -0.5rem rgba(185, 54, 18, 0.55);
  transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.review-button svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 160ms ease;
}

.review-button:active { transform: scale(0.985); }

/* footer */
.foot {
  width: 100%;
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.signoff {
  max-width: 23rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.phone {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  margin-top: 0.4rem;
  padding: 0 0.4rem;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  text-underline-offset: 0.18em;
}

.trust {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

@keyframes fill-star {
  from { fill: transparent; }
  to { fill: var(--orange); }
}

@media (hover: hover) {
  .star:hover { transform: translateY(-3px) scale(1.06); }
  .star:hover ~ .star .star-icon { fill: transparent; animation: none; }
  .review-button:hover {
    background: var(--orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 0.8rem 1.4rem -0.6rem rgba(185, 54, 18, 0.6);
  }
  .review-button:hover svg { transform: translateX(3px); }
}

@media (min-width: 32rem) {
  .page-shell { padding: 2rem 1.5rem; }

  .review-card {
    border: 1px solid var(--border);
    border-radius: 1.4rem;
    box-shadow: 0 1.4rem 3.4rem rgba(31, 41, 37, 0.12);
  }
}

@media (max-width: 22rem) {
  .star { flex-basis: 3rem; width: 3rem; height: 3rem; }
  .star-icon { width: 2.3rem; height: 2.3rem; }
  .rate { padding-inline: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .star,
  .review-button,
  .review-button svg { transition: none; }

  .star-icon { fill: var(--orange); animation: none; }
}
