/* Cara Care: temporary page while the new website is finished.
   Same tokens, fonts and shapes as the new site (caracare/src/styles/global.css). */

@font-face {
  font-family: 'Mona Display';
  src: url('/fonts/mona-display.woff2') format('woff2');
  font-weight: 500 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Mona Text';
  src: url('/fonts/mona-text.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Mona Display Fallback';
  src: local('Arial Bold'), local('Arial-BoldMT');
  size-adjust: 106.5%;
  ascent-override: 88%;
  descent-override: 22%;
}
@font-face {
  font-family: 'Mona Text Fallback';
  src: local('Arial'), local('ArialMT');
  size-adjust: 103.3%;
  ascent-override: 92%;
  descent-override: 24%;
}

:root {
  --navy-950: #021f2e;
  --navy-900: #04344c;
  --navy-800: #0b4a69;
  --teal-600: #0a7385;
  --sky-500: #0ca4bc;
  --sky-300: #6acce8;
  --orange-500: #f5812a;
  --orange-600: #e2701c;
  --amber-400: #fcaf19;
  --paper: #f4f2ed;
  --paper-2: #eae6de;
  --white: #ffffff;
  --cream-50: #fbf9f5;
  --text: var(--navy-900);
  --text-soft: #3b5563;
  --line: rgb(4 52 76 / 0.14);

  --font-display: 'Mona Display', 'Mona Display Fallback', 'Arial Black', system-ui, sans-serif;
  --font-body: 'Mona Text', 'Mona Text Fallback', system-ui, sans-serif;

  --gutter: clamp(1rem, 0.55rem + 2.2vw, 2.75rem);
  --max: 1440px;
  --r-m: 18px;
  --r-l: clamp(20px, 2.4vw, 32px);
  --shadow-s: 0 1px 2px rgb(2 31 46 / 0.06), 0 6px 18px -6px rgb(2 31 46 / 0.1);
  --shadow-l: 0 40px 80px -40px rgb(2 31 46 / 0.45);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(60% 50% at 100% 0%, rgb(12 164 188 / 0.12), transparent 65%),
    radial-gradient(50% 45% at 0% 100%, rgb(245 129 42 / 0.1), transparent 65%),
    var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1,
h2,
p,
ul,
figure,
address {
  margin: 0;
}
ul {
  padding: 0;
  list-style: none;
}
address {
  font-style: normal;
}
a {
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
}
:focus-visible {
  outline: 3px solid var(--orange-500);
  outline-offset: 3px;
  border-radius: 6px;
}
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

/* ---------- Header ---------- */
.top {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(1rem, 0.6rem + 1.2vw, 1.75rem) var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.top__logo {
  display: block;
  border-radius: 8px;
}
.top__logo img {
  width: auto;
  height: clamp(40px, 2.6rem + 1vw, 60px);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  background: var(--orange-500);
  color: var(--navy-950);
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 10px 24px -14px rgb(245 129 42 / 0.9);
  transition:
    background-color 220ms var(--ease-out),
    transform 320ms var(--ease-out);
}
.pill:hover {
  background: var(--orange-600);
  transform: translateY(-2px);
}

/* ---------- Main ---------- */
.main {
  flex: 1;
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(1rem, 0.5rem + 2vw, 2.5rem) var(--gutter) clamp(3rem, 2rem + 4vw, 6rem);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  grid-template-areas:
    'title visual'
    'lead visual'
    'sub visual'
    'cards visual';
  grid-template-rows: auto auto auto 1fr;
  column-gap: clamp(2rem, 1rem + 4vw, 6rem);
  align-items: start;
}
.copy {
  display: contents;
}
.title {
  grid-area: title;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 1.2rem + 5.2vw, 6rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.05em;
  max-width: 12ch;
  text-wrap: balance;
}
.title__dot {
  color: var(--orange-500);
}
.lead {
  grid-area: lead;
  margin-top: clamp(1.25rem, 1rem + 1vw, 2rem);
  max-width: 34ch;
  font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.55rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--navy-900);
}
.sub {
  grid-area: sub;
  margin-top: 1rem;
  max-width: 48ch;
  color: var(--text-soft);
}

/* ---------- Contact cards ---------- */
.cards {
  grid-area: cards;
  margin-top: clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 44rem;
  container-type: inline-size;
}
.card {
  display: grid;
  align-content: start;
  gap: 0.35rem;
  padding: clamp(1.15rem, 0.9rem + 0.8vw, 1.6rem);
  border-radius: var(--r-l);
  background: var(--white);
  box-shadow: var(--shadow-s);
}
.card__title {
  margin-bottom: 0.35rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--teal-600);
}
.card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  justify-self: start;
  min-height: 40px;
  font-weight: 680;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 6px) / 0 2px no-repeat;
  transition: background-size 420ms var(--ease-out);
}
.card__link:hover {
  background-size: 100% 2px;
}
.card__link .icon {
  color: var(--orange-500);
}
.card__text {
  margin-top: 0.25rem;
  font-size: 0.9375rem;
  color: var(--text-soft);
}
.card--urgent {
  grid-column: 1 / -1;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 1.5rem;
  align-items: center;
  background: var(--navy-900);
  color: var(--cream-50);
  box-shadow: var(--shadow-l);
}
.card--urgent .card__title {
  grid-column: 1 / -1;
  color: var(--amber-400);
}
.card__big {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  justify-self: start;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 1.25rem + 1.4vw, 2.5rem);
  font-weight: 780;
  letter-spacing: -0.03em;
  line-height: 1.05;
  min-height: 48px;
  text-decoration: none;
  white-space: nowrap;
  color: var(--white);
}
.card__big .icon {
  width: 0.8em;
  height: 0.8em;
  color: var(--amber-400);
}
.card__big:hover {
  color: var(--amber-400);
}
.card--urgent .card__text {
  margin-top: 0;
  color: #b7c8d1;
}

/* The urgent card puts its text under the number when the cards column is narrow */
@container (max-width: 34rem) {
  .card--urgent {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0.5rem;
  }
}

/* ---------- Visual: arched doorway with the brand shapes ---------- */
.visual {
  grid-area: visual;
  position: relative;
  align-self: center;
  justify-self: end;
  width: min(100%, 520px);
  margin: 0;
  isolation: isolate;
}
.door {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 999px 999px var(--r-l) var(--r-l);
  overflow: hidden;
  background: var(--paper-2);
  box-shadow: var(--shadow-l);
}
.door img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.shape {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
}
.shape--sun {
  width: 46%;
  aspect-ratio: 1;
  top: 18%;
  left: -14%;
  background: var(--orange-500);
}
.shape--dot {
  width: 15%;
  aspect-ratio: 1;
  top: 2%;
  right: -4%;
  z-index: 1;
  background: var(--amber-400);
}
.shape--arc {
  width: 52%;
  aspect-ratio: 1;
  bottom: -9%;
  left: -16%;
  border: clamp(14px, 1.6vw, 22px) solid var(--sky-500);
  border-right-color: transparent;
  border-top-color: transparent;
  transform: rotate(-20deg);
}
.chip {
  position: absolute;
  z-index: 2;
  left: clamp(0.75rem, 4%, 1.5rem);
  bottom: clamp(0.75rem, 4%, 1.5rem);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow-s);
  font-family: var(--font-display);
  font-weight: 720;
  font-size: clamp(0.85rem, 0.75rem + 0.4vw, 1.1rem);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.chip__dot {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange-500);
}
.chip__dot::after {
  /* a soft pulse: the page is alive, the work goes on */
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--orange-500);
  animation: pulse 2.2s var(--ease-out) infinite;
}

/* ---------- Footer ---------- */
.foot {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding: 1.5rem var(--gutter) clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  font-size: 0.875rem;
  color: var(--text-soft);
}
.foot__tag {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 760;
  letter-spacing: -0.02em;
  color: var(--navy-900);
}
.foot__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.75rem;
}
.foot__item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.foot__item a {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  min-height: 40px;
  font-weight: 650;
  color: var(--navy-900);
  text-decoration: none;
}
.foot__item a + a {
  margin-left: 1rem;
}
.foot__item a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.foot__item .icon {
  width: 1em;
  height: 1em;
}

/* ---------- Entrance (CSS only, transform and opacity) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rise {
    animation: rise 900ms var(--ease-out) both;
  }
  .d1 {
    animation-delay: 90ms;
  }
  .d2 {
    animation-delay: 180ms;
  }
  .d3 {
    animation-delay: 300ms;
  }
  .d4 {
    animation-delay: 390ms;
  }
  .d5 {
    animation-delay: 480ms;
  }
  .door {
    animation: open 1200ms var(--ease-out) 120ms both;
  }
  .shape--sun,
  .shape--dot,
  .shape--arc,
  .chip {
    animation: fade 900ms var(--ease-out) 520ms both;
  }
}
@media (prefers-reduced-motion: reduce) {
  .chip__dot::after {
    animation: none;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}
@keyframes open {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
}
@keyframes fade {
  from {
    opacity: 0;
  }
}
@keyframes pulse {
  from {
    opacity: 0.55;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(2.8);
  }
}

/* ---------- Smaller screens ---------- */
@media (max-width: 959px) {
  .main {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      'title'
      'lead'
      'visual'
      'sub'
      'cards';
    grid-template-rows: none;
  }
  .visual {
    justify-self: center;
    width: min(86%, 400px);
    margin: clamp(2rem, 1.5rem + 3vw, 3rem) 0 0.5rem;
  }
  .sub {
    margin-top: clamp(2rem, 1.5rem + 3vw, 3rem);
  }
  .cards {
    max-width: none;
  }
}
@media (max-width: 560px) {
  .pill__hint {
    display: none;
  }
  .pill {
    padding-inline: 1rem;
  }
  .cards {
    grid-template-columns: minmax(0, 1fr);
  }
  .chip {
    padding: 0.55rem 0.9rem;
  }
  .foot {
    flex-direction: column;
    align-items: flex-start;
  }
}
