@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Tangerine";
  src: url("assets/fonts/Tangerine-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Homemade Apple";
  src: url("assets/fonts/HomemadeApple-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter Tight";
  src: url("assets/fonts/InterTight-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --pap: #1F4B8A;
  --meta: #FF5C1A;
  --ink: #161B22;
  --muted: #5E6874;
  --line: #E4E7EC;
  --bg: #F5F6F8;
  --card: #FFFFFF;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-feature-settings: "ss01" on, "cv11" on;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 56px 32px 40px;
}

header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 92px;
}

.brand-logo {
  width: 104px;
  height: auto;
  display: block;
}

main {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  flex: 1;
}

.businesses {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--card);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px 24px 22px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(16, 20, 28, 0.04);
}

.card > * {
  position: relative;
  z-index: 1;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}

.card-logistics {
  background-image: url("assets/bg-logistics.jpg");
  background-position: 42% 50%;
}

.card-logistics::before {
  background: linear-gradient(
    185deg,
    rgba(247, 249, 252, 0.90) 0%,
    rgba(247, 249, 252, 0.78) 42%,
    rgba(247, 249, 252, 0.62) 100%
  );
}

.card-meta {
  background-image: url("assets/bg-investment.jpg");
  background-position: center;
}

.card-meta::before {
  background: linear-gradient(
    185deg,
    rgba(248, 250, 253, 0.88) 0%,
    rgba(248, 250, 253, 0.76) 42%,
    rgba(248, 250, 253, 0.60) 100%
  );
}

.card-petpaw {
  background-image: url("assets/bg-petpaw.jpg");
  background-position: 50% 8%;
}

.card-petpaw::before {
  background: linear-gradient(
    185deg,
    rgba(255, 251, 246, 0.90) 0%,
    rgba(255, 251, 246, 0.76) 42%,
    rgba(255, 251, 246, 0.58) 100%
  );
}

a.card {
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

a.card:hover,
a.card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--pap);
  box-shadow: 0 16px 36px rgba(31, 75, 138, 0.12);
  outline: none;
}

a.card:hover::before,
a.card:focus-visible::before {
  opacity: 0.86;
}

.sector {
  position: relative;
  margin: 0;
  padding: 0;
  font-family: "Inter Tight", "Inter", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(31, 75, 138, 0.55);
  text-align: left;
  z-index: 1;
  transition: color .25s ease;
}


.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  height: 28px;
  position: relative;
  z-index: 2;
}

.logo-pap-supply {
  height: 28px;
  width: auto;
  display: block;
  flex: 0 0 auto;
}

.logo-metabean {
  font-family: "Inter Tight", "Inter", sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.035em;
  color: var(--pap);
  line-height: 28px;
  height: 28px;
  display: block;
  flex: 0 0 auto;
}

.logo-petpaw {
  height: 20px;
  width: auto;
  display: block;
  flex: 0 0 auto;
}

.cta {
  position: relative;
  margin: 0;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(31, 75, 138, 0.55);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color .25s ease;
}


.cta span.arrow {
  transition: transform .22s ease;
}

a.card:hover .sector,
a.card:hover .cta,
a.card:focus-visible .sector,
a.card:focus-visible .cta {
  color: var(--pap);
}

a.card:hover .cta span.arrow {
  transform: translateX(4px);
}

.slogan {
  width: 100%;
  max-width: 1120px;
  margin: 208px auto 0;
  padding: 0 16px;
  text-align: center;
  font-family: "Homemade Apple", cursive;
  font-size: 38px;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  -webkit-text-stroke: 0.75px currentColor;
  paint-order: stroke fill;
  color: var(--pap);
  line-height: 1.5;
  transform: rotate(-1.4deg);
}

.slogan span {
  display: inline-block;
  opacity: 0;
  transform: translateY(10px) rotate(calc(var(--tilt, 0deg) - 10deg));
  animation: scribble-in 0.42s calc(var(--i, 0) * 0.055s) cubic-bezier(.2,.75,.25,1) forwards;
}

.slogan .sp {
  width: 0.3em;
  opacity: 1;
  animation: none;
  transform: none;
}

@keyframes scribble-in {
  to {
    opacity: 1;
    transform: translateY(0) rotate(var(--tilt, 0deg));
  }
}


@media (prefers-reduced-motion: reduce) {
  .slogan span {
    animation: none;
    opacity: 1;
    transform: rotate(var(--tilt, 0deg));
  }
}

footer {
  width: 100%;
  max-width: 1120px;
  margin: 56px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
  text-align: center;
}

footer a {
  color: var(--muted);
}

footer a:hover,
footer a:focus-visible {
  color: var(--pap);
  outline: none;
}

/* Logistics intro page */
.intro {
  max-width: 680px;
  margin: 0 auto;
}

.intro h1 {
  font-family: "Inter Tight", "Inter", sans-serif;
  font-size: 25px;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 20px;
}

.intro p {
  font-size: 16px;
  font-weight: 450;
  line-height: 1.7;
  color: #3D4652;
  margin-bottom: 16px;
  text-align: justify;
}

.intro > p {
  max-width: 605px;
}

.intro .back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 36px;
  font-size: 13px;
  font-weight: 600;
  color: var(--pap);
}

.intro .back:hover span.arrow,
.intro .back:focus-visible span.arrow {
  transform: translateX(-4px);
}

.intro .back span.arrow {
  transition: transform .22s ease;
}

.contact {
  margin-top: 48px;
}

.page-slogan {
  font-family: "Inter Tight", "Inter", sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.3;
  margin: 0 0 28px;
}

.contact h2 {
  font-family: "Inter Tight", "Inter", sans-serif;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 20px;
}

.contact h2 a {
  color: var(--pap);
  font-weight: 600;
}

.contact h2 a:hover,
.contact h2 a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-success {
  font-size: 15px;
  line-height: 1.6;
  color: var(--pap);
  margin-bottom: 8px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 480px;
  margin-top: 92px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  font-weight: 450;
  line-height: 1.5;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  outline: none;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--pap);
  box-shadow: 0 0 0 3px rgba(31, 75, 138, 0.12);
}

.contact-form .honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form button {
  align-self: flex-start;
  margin-top: 4px;
  border: 0;
  border-radius: 10px;
  padding: 10px 22px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  background: var(--pap);
  cursor: pointer;
}

.contact-form button:hover,
.contact-form button:focus-visible {
  background: #183a6c;
}

@media (max-width: 900px) {
  .page { padding: 40px 20px 32px; }
  header { padding-bottom: 64px; }
  .brand-logo { width: 88px; }
  .businesses { grid-template-columns: 1fr; gap: 16px; }
  .card { min-height: 300px; padding: 22px 20px 20px; }
  .sector { font-size: 12px; }
  .slogan { font-size: 27px; margin-top: 156px; letter-spacing: normal; }
  .intro h1 { font-size: 20px; }
}
